[PATCH 02/17] test: Report test failures from test_expect_*
Austin Clements
amdragon at MIT.EDU
Sat Jun 11 13:04:28 PDT 2011
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 d0e2794..a122a16 100755
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -581,6 +581,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_ () {
@@ -593,6 +594,7 @@ test_known_broken_failure_ () {
test_broken=$(($test_broken+1))
say_color pass "%-6s" "BROKEN"
echo " $@"
+ return 1
}
test_debug () {
--
1.7.5.1
More information about the notmuch
mailing list