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 <mirucam@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Miriam Rubio committed
Sep 13, 2021 at 19:38 UTC
282073cce2e7f0fba1f2862a324118fdfa10719d
1 file changed
+11
t/t6030-bisect-porcelain.sh
+11
@@ -962,4 +962,15 @@ test_expect_success 'bisect handles annotated tags' '
962
grep "$bad is the first bad commit" output
963
'
964
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
+
976
test_done