diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-03-14 12:18:50 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-03-14 21:20:26 +0100 |
commit | 89511d28bf7dff8f909360c89b5f99df21dba8bd (patch) | |
tree | 8da75dbc9193a8df4924ab0afe7a388378a78864 /source3/selftest | |
parent | 94af1581ef5458438ee883cdec204502e448ddde (diff) | |
download | samba-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-x | source3/selftest/s3-selftest.sh | 4 |
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 |