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>
Nicolas Pitre committed
Sep 2, 2008 at 10:22 UTC
5f020f720298ddba537f857a240ffa7debb05f54
1 file changed
+2
-1
t/t5300-pack-object.sh
+2
-1
@@ -272,7 +272,8 @@ test_expect_success \
272
273
test_expect_success \
274
'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'
277
278
test_expect_success \
279
'honor pack.packSizeLimit' \