summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/selftest/wscript7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/selftest/wscript b/source4/selftest/wscript
index 620f223afd..e1d07d5093 100644
--- a/source4/selftest/wscript
+++ b/source4/selftest/wscript
@@ -24,6 +24,9 @@ def set_options(opt):
gr.add_option('--tests',
help=("wildcard pattern of tests to run"),
action="store", dest='TESTS', default='')
+ gr.add_option('--filtered-subunit',
+ help=("output (xfail) filtered subunit"),
+ action="store_true", dest='FILTERED_SUBUNIT', default=False)
gr.add_option('--quick',
help=("enable only quick tests"),
action="store_true", dest='QUICKTEST', default=False)
@@ -74,7 +77,9 @@ def cmd_testonly(opt):
if os.environ.get('RUN_FROM_BUILD_FARM') is not None:
env.FILTER_OPTIONS = '${FILTER_XFAIL} --strip-passed-output'
else:
- env.FILTER_OPTIONS = '${FILTER_XFAIL} | ${FORMAT_TEST_OUTPUT}'
+ env.FILTER_OPTIONS = '${FILTER_XFAIL}'
+ if not Options.options.FILTERED_SUBUNIT:
+ env.FILTER_OPTIONS += ' | ${FORMAT_TEST_OUTPUT}'
if Options.options.VALGRIND:
os.environ['VALGRIND'] = 'valgrind -q --num-callers=30'