selftest: When running on the buildfarm, pipe everything through
authorJelmer Vernooij <jelmer@samba.org>
Sun, 21 Nov 2010 22:09:49 +0000 (23:09 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 21 Nov 2010 22:56:23 +0000 (23:56 +0100)
filter-subunit for the exit code.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Nov 21 23:56:23 CET 2010 on sn-devel-104

source4/selftest/wscript

index a5fafa3d6a4f5d590e714c10a09720f0e9a5017d..e6b75d10f4b52eede993ec8400b1eda43668d714 100644 (file)
@@ -161,6 +161,8 @@ def cmd_testonly(opt):
     cmd = '(${PERL} %s/../selftest/selftest.pl --prefix=${SELFTEST_PREFIX} --builddir=. --srcdir=. --exclude=./selftest/skip --testlist="${PYTHON} ./selftest/tests.py|" ${OPTIONS} --socket-wrapper ${TESTS} && touch ${SELFTEST_PREFIX}/st_done) | ${FILTER_OPTIONS} | tee ${SELFTEST_PREFIX}/subunit' % (os.getcwd())
     if os.environ.get('RUN_FROM_BUILD_FARM') is None and not Options.options.FILTERED_SUBUNIT:
         cmd += ' | ${FORMAT_TEST_OUTPUT}'
+    else:
+        cmd += ' | ${PYTHON} -u ../selftest/filter-subunit'
     cmd = EXPAND_VARIABLES(opt, cmd)
 
     print("test: running %s" % cmd)