Code

Bisect: add a "bisect replay" test case.
authorChristian Couder <chriscool@tuxfamily.org>
Mon, 22 Oct 2007 05:49:39 +0000 (07:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 27 Oct 2007 06:27:24 +0000 (23:27 -0700)
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>
t/t6030-bisect-porcelain.sh

index db82259afe3f95d59d69225353b0d0b1aea4d472..16d0c4a90eca9ad866ed37294a17db65992fe4ef 100755 (executable)
@@ -167,6 +167,13 @@ test_expect_success 'bisect skip: add line and then a new test' '
        git bisect skip &&
        git bisect good > 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
 '