summaryrefslogtreecommitdiff
path: root/selftest/selftesthelpers.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-11-01 14:40:30 -0700
committerJelmer Vernooij <jelmer@samba.org>2014-11-30 14:22:05 +0100
commitafe94aa53549ec66cb48959260753a4fa424e481 (patch)
tree30d107a31166680de7b92298bfe8962355495cb7 /selftest/selftesthelpers.py
parentf6e3cd7f03a15595a2fa65c22a56c60d7d3f8bff (diff)
downloadsamba-afe94aa53549ec66cb48959260753a4fa424e481.tar.gz
Re-use add_prefix function.
Change-Id: I6e91bc9fc6714c147427e920ca0e3e22cb9a076b Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'selftest/selftesthelpers.py')
-rw-r--r--selftest/selftesthelpers.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/selftest/selftesthelpers.py b/selftest/selftesthelpers.py
index 984a5cf41b3..c66d92d4b3c 100644
--- a/selftest/selftesthelpers.py
+++ b/selftest/selftesthelpers.py
@@ -102,13 +102,7 @@ def plantestsuite(name, env, cmdline):
print env
if isinstance(cmdline, list):
cmdline = " ".join(cmdline)
- filter_subunit_args = ["--fail-on-empty"]
- if "$LISTOPT" in cmdline:
- filter_subunit_args.append("$LISTOPT")
- print "%s 2>&1 | %s/selftest/filter-subunit %s --prefix=\"%s.\" --suffix=\"(%s)\"" % (cmdline,
- srcdir(),
- " ".join(filter_subunit_args),
- name, env)
+ print "%s 2>&1 | " + add_prefix(name, env, "$LISTOPT" in cmdline)
def add_prefix(prefix, env, support_list=False):