We need to examine the contents of PYTHON env variable which should defined the
python version to be used when running tests.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
cmd = parts[0]
exe = os.path.join(BINDIR, cmd)
if os.path.exists(exe):
+ python_cmds = ["samba-tool", "samba_dnsupdate"]
parts[0] = exe
- if cmd =='samba-tool' and os.getenv("PYTHON", None):
+ if cmd in python_cmds and os.getenv("PYTHON", None):
parts.insert(0, os.environ["PYTHON"])
if not isinstance(line, list):