mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
selftest: Add support for setting ENV variables in plansmbtorture4testsuite()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> BUG: https://bugzilla.samba.org/show_bug.cgi?id=14817 (cherry picked from commit 3db299e586fd9464b6e1b145f29b10c8ae325d3a)
This commit is contained in:
parent
e04e2925be
commit
b884b4ef58
@ -183,13 +183,14 @@ smbtorture4_options = [
|
||||
] + get_env_torture_options()
|
||||
|
||||
|
||||
def plansmbtorture4testsuite(name, env, options, target, modname=None):
|
||||
def plansmbtorture4testsuite(name, env, options, target, environ={}, modname=None):
|
||||
if modname is None:
|
||||
modname = "samba4.%s" % name
|
||||
if isinstance(options, list):
|
||||
options = " ".join(options)
|
||||
options = " ".join(smbtorture4_options + ["--target=%s" % target]) + " " + options
|
||||
cmdline = "%s $LISTOPT $LOADLIST %s %s" % (valgrindify(smbtorture4), options, name)
|
||||
cmdline = ["%s=%s" % item for item in environ.items()]
|
||||
cmdline += "%s $LISTOPT $LOADLIST %s %s" % (valgrindify(smbtorture4), options, name)
|
||||
plantestsuite_loadlist(modname, env, cmdline)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user