Bisect: add a "bisect replay" test case.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Christian Couder 2007-10-22 07:49:39 +02:00 коммит произвёл Junio C Hamano
Родитель c39ce91827
Коммит 37f9fd0dde
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -167,6 +167,13 @@ test_expect_success 'bisect skip: add line and then a new test' '
git bisect skip && git bisect skip &&
git bisect good > my_bisect_log.txt && git bisect good > my_bisect_log.txt &&
grep "$HASH5 is first bad commit" my_bisect_log.txt && grep "$HASH5 is first bad commit" my_bisect_log.txt &&
git bisect log > log_to_replay.txt
git bisect reset
'
test_expect_success 'bisect skip and bisect replay' '
git bisect replay log_to_replay.txt > my_bisect_log.txt &&
grep "$HASH5 is first bad commit" my_bisect_log.txt &&
git bisect reset git bisect reset
' '