mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
Re-use add_prefix function.
Change-Id: I6e91bc9fc6714c147427e920ca0e3e22cb9a076b Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
f6e3cd7f03
commit
afe94aa535
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user