From d0c25157e9b96ce9855ecd632723423ea45ea8c0 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 8 Apr 2010 16:48:33 +0200 Subject: selftest: Add --filtered-subunit option. --- source4/selftest/wscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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' -- cgit