mirror of
https://github.com/git/git
synced 2024-11-04 16:17:49 +00:00
t5300: fix test_with_bad_commit()
0f8edf7317
(index-pack: --fsck-objects to take an optional argument for
fsck msgs, 2024-02-01) added a test function test_with_bad_commit() that
contained two bugs. test_expect_fail was used instead of test_must_fail,
and a && was not included at the end of the line.
Fix these two issues in the test.
Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
0f8edf7317
commit
ad538c61da
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ test_with_bad_commit () {
|
|||
must_pass_arg="$2" &&
|
||||
(
|
||||
cd strict &&
|
||||
test_expect_fail git index-pack "$must_fail_arg" "test-$(cat pack-name).pack"
|
||||
test_must_fail git index-pack "$must_fail_arg" "test-$(cat pack-name).pack" &&
|
||||
git index-pack "$must_pass_arg" "test-$(cat pack-name).pack"
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue