diff options
author | Noel Power <noel.power@suse.com> | 2018-11-29 21:18:07 +0000 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2018-12-10 10:38:25 +0100 |
commit | e3c37bbad4f45124a4ae7316a67e4c223e16faf1 (patch) | |
tree | defe37ecd3253d16c24d32e363e29921203fb35d /source4/selftest/tests.py | |
parent | 2fb74e6ad32db46d907bb75ea35107c0e348ed78 (diff) | |
download | samba-e3c37bbad4f45124a4ae7316a67e4c223e16faf1.tar.gz |
selftest: don't hardcode '.python3' for extra-python tests
Instead of hardcoding '.python3' we now hardcode the extra python
exe (which will be python2 for a default python3 build)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/selftest/tests.py')
-rwxr-xr-x | source4/selftest/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 62ecd6edcff..e8ff47c5ef4 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -625,7 +625,8 @@ def planoldpythontestsuite(env, module, name=None, extra_path=[], environ={}, ex plantestsuite_loadlist(name, env, args) if py3_compatible and extra_python is not None: args[args.index(subunitrun)] = subunitrun3 - plantestsuite_loadlist(name + ".python3", env, args) + python_name = os.path.basename(extra_python) + plantestsuite_loadlist(name + "." + python_name, env, args) # Run complex search expressions test once for each database backend. # Right now ad_dc has mdb and ad_dc_ntvfs has tdb |