Skip to content

Commit ad538c6

Browse files
john-caigitster
authored andcommitted
t5300: fix test_with_bad_commit()
0f8edf7 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0f8edf7 commit ad538c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5300-pack-object.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ test_with_bad_commit () {
465465
must_pass_arg="$2" &&
466466
(
467467
cd strict &&
468-
test_expect_fail git index-pack "$must_fail_arg" "test-$(cat pack-name).pack"
468+
test_must_fail git index-pack "$must_fail_arg" "test-$(cat pack-name).pack" &&
469469
git index-pack "$must_pass_arg" "test-$(cat pack-name).pack"
470470
)
471471
}

0 commit comments

Comments
 (0)