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>
Christian Couder committed
Oct 22, 2007 at 07:49 UTC
37f9fd0dde454db08d342e5ce7625e012507bb9b
1 file changed
+7
t/t6030-bisect-porcelain.sh
+7
@@ -167,6 +167,13 @@ test_expect_success 'bisect skip: add line and then a new test' '
167
git bisect skip &&
168
git bisect good > my_bisect_log.txt &&
169
grep "$HASH5 is first bad commit" my_bisect_log.txt &&
170
+ git bisect log > log_to_replay.txt
171
+ git bisect reset
172
+'
173
+
174
+test_expect_success 'bisect skip and bisect replay' '
175
+ git bisect replay log_to_replay.txt > my_bisect_log.txt &&
176
+ grep "$HASH5 is first bad commit" my_bisect_log.txt &&
177
git bisect reset
178
'
179