mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
python/samba/test: Make sure traffic_replay is called with correct python
PY3 fix samba4.blackbox.rfc2307_mapping Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
89c6338636
commit
fdf75084e4
@ -385,7 +385,7 @@ class BlackboxTestCase(TestCaseInTempDir):
|
||||
cmd = parts[0]
|
||||
exe = os.path.join(BINDIR, cmd)
|
||||
if os.path.exists(exe):
|
||||
python_cmds = ["samba-tool", "samba_dnsupdate"]
|
||||
python_cmds = ["samba-tool", "samba_dnsupdate", "script/traffic_replay"]
|
||||
parts[0] = exe
|
||||
if cmd in python_cmds and os.getenv("PYTHON", None):
|
||||
parts.insert(0, os.environ["PYTHON"])
|
||||
|
Loading…
Reference in New Issue
Block a user