Skip to content

Commit a66037c

Browse files
chriscoolgitster
authored andcommitted
t6030: test skipping away from an already skipped commit
Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 62d0b0d commit a66037c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

t/t6030-bisect-porcelain.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,18 @@ test_expect_success 'restricting bisection on one dir and a file' '
555555
grep "$PARA_HASH4 is first bad commit" my_bisect_log.txt
556556
'
557557

558+
test_expect_success 'skipping away from skipped commit' '
559+
git bisect start $PARA_HASH7 $HASH1 &&
560+
para4=$(git rev-parse --verify HEAD) &&
561+
test "$para4" = "$PARA_HASH4" &&
562+
git bisect skip &&
563+
hash7=$(git rev-parse --verify HEAD) &&
564+
test "$hash7" = "$HASH7" &&
565+
git bisect skip &&
566+
hash3=$(git rev-parse --verify HEAD) &&
567+
test "$hash3" = "$HASH3"
568+
'
569+
558570
#
559571
#
560572
test_done

0 commit comments

Comments
 (0)