Skip to content

Commit 5f020f7

Browse files
Nicolas Pitregitster
authored andcommitted
t5300: improve SHA1 collision test
Make sure the reason for the command failure is actually due to the detection of SHA1 collision. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent eede9f4 commit 5f020f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t5300-pack-object.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ test_expect_success \
272272

273273
test_expect_success \
274274
'make sure index-pack detects the SHA1 collision' \
275-
'test_must_fail git-index-pack -o bad.idx test-3.pack'
275+
'test_must_fail git-index-pack -o bad.idx test-3.pack 2>msg &&
276+
grep "SHA1 COLLISION FOUND" msg'
276277

277278
test_expect_success \
278279
'honor pack.packSizeLimit' \

0 commit comments

Comments
 (0)