* [PATCH] test: Report test failures from test_expect_*
@ 2011-05-12 13:15 Austin Clements
0 siblings, 0 replies; only message in thread
From: Austin Clements @ 2011-05-12 13:15 UTC (permalink / raw)
To: notmuch; +Cc: amdragon
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-12 13:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-12 13:15 [PATCH] test: Report test failures from test_expect_* Austin Clements
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).