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>
This commit is contained in:
Nicolas Pitre 2008-09-02 10:22:22 -04:00 коммит произвёл Junio C Hamano
Родитель eede9f42b5
Коммит 5f020f7202
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -272,7 +272,8 @@ test_expect_success \
test_expect_success \
'make sure index-pack detects the SHA1 collision' \
'test_must_fail git-index-pack -o bad.idx test-3.pack'
'test_must_fail git-index-pack -o bad.idx test-3.pack 2>msg &&
grep "SHA1 COLLISION FOUND" msg'
test_expect_success \
'honor pack.packSizeLimit' \