summaryrefslogtreecommitdiff
path: root/source4/selftest/wscript
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-04-08 16:48:33 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-04-08 23:20:35 +0200
commitd0c25157e9b96ce9855ecd632723423ea45ea8c0 (patch)
treee5a2d0511da3d7d0451c1b6aa897f31301a13f67 /source4/selftest/wscript
parentffb2449a13504261d3c113fcd3891553ccd44ff1 (diff)
downloadsamba-d0c25157e9b96ce9855ecd632723423ea45ea8c0.tar.gz
samba-d0c25157e9b96ce9855ecd632723423ea45ea8c0.tar.bz2
samba-d0c25157e9b96ce9855ecd632723423ea45ea8c0.zip
selftest: Add --filtered-subunit option.
Diffstat (limited to 'source4/selftest/wscript')
-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'