summaryrefslogtreecommitdiff
path: root/source3/selftest
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-03-14 12:18:50 +0100
committerStefan Metzmacher <metze@samba.org>2012-03-14 21:20:26 +0100
commit89511d28bf7dff8f909360c89b5f99df21dba8bd (patch)
tree8da75dbc9193a8df4924ab0afe7a388378a78864 /source3/selftest
parent94af1581ef5458438ee883cdec204502e448ddde (diff)
downloadsamba-89511d28bf7dff8f909360c89b5f99df21dba8bd.tar.gz
samba-89511d28bf7dff8f909360c89b5f99df21dba8bd.tar.bz2
samba-89511d28bf7dff8f909360c89b5f99df21dba8bd.zip
s3:selftest: add support for 'make test FAIL_IMMEDIATELY=1'
This is what autobuild uses in order to let the build abort on the first failure. metze
Diffstat (limited to 'source3/selftest')
-rwxr-xr-xsource3/selftest/s3-selftest.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/selftest/s3-selftest.sh b/source3/selftest/s3-selftest.sh
index 0d20324c68..f5f6f2a641 100755
--- a/source3/selftest/s3-selftest.sh
+++ b/source3/selftest/s3-selftest.sh
@@ -5,6 +5,10 @@ if [ "x${SUBUNIT_FORMATTER}" = x"" ]; then
SUBUNIT_FORMATTER="${PYTHON} -u ${SELFTESTDIR}/format-subunit --prefix=${SELFTESTPREFIX} --immediate"
fi
+if [ x"${FAIL_IMMEDIATELY}" != x"" ]; then
+ FILTER_XFAIL="${FILTER_XFAIL} --fail-immediately"
+fi
+
cleanup_and_exit() {
if test "$1" = 0 -o -z "$1"; then
exit 0