diff options
author | John Cai <johncai86@gmail.com> | 2024-03-15 04:57:26 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-03-15 10:08:30 -0700 |
commit | ad538c61dab42db9012bba7b41bbd63f75ff6469 (patch) | |
tree | c37a47e4c51f67e0942c2a26c7208f7cdb8cf675 /t | |
parent | 0f8edf7317c7eb152bf045ed99b46072439088a6 (diff) | |
download | git-ad538c61dab42db9012bba7b41bbd63f75ff6469.tar.gz |
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>
Diffstat (limited to 't')
-rwxr-xr-x | t/t5300-pack-object.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index a58f91035d..61e2be2903 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -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" ) } |