Skip to content

Commit 282073c

Browse files
mirucamgitster
authored andcommitted
t6030-bisect-porcelain: add tests to control bisect run exit cases
There is a gap on bisect run test coverage related with error exits. Add two tests to control these error cases. Signed-off-by: Miriam Rubio <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6c40894 commit 282073c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

t/t6030-bisect-porcelain.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,4 +962,15 @@ test_expect_success 'bisect handles annotated tags' '
962962
grep "$bad is the first bad commit" output
963963
'
964964

965+
test_expect_success 'bisect run fails with exit code equals or greater than 128' '
966+
write_script test_script.sh <<-\EOF &&
967+
exit 128
968+
EOF
969+
test_must_fail git bisect run ./test_script.sh &&
970+
write_script test_script.sh <<-\EOF &&
971+
exit 255
972+
EOF
973+
test_must_fail git bisect run ./test_script.sh
974+
'
975+
965976
test_done

0 commit comments

Comments
 (0)