This makes test_expect_* return non-zero if the test fails, so the caller can make decisions based on this, such as setting test prerequisites. --- test/test-lib.sh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/test/test-lib.sh b/test/test-lib.sh index 9b56406..955350a 100755 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -575,6 +575,7 @@ test_failure_ () { echo "$@" | sed -e 's/^/ /' if test "$verbose" != "t"; then cat test.output; fi test "$immediate" = "" || { GIT_EXIT_OK=t; exit 1; } + return 1 } test_known_broken_ok_ () { @@ -587,6 +588,7 @@ test_known_broken_failure_ () { test_broken=$(($test_broken+1)) say_color pass "%-6s" "BROKEN" echo " $@" + return 1 } test_debug () { -- 1.7.5.1