mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +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>
This commit is contained in:
parent
18976a9568
commit
3db299e586
@ -182,13 +182,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