selftest: Always set PYTHON to something sensible (if it isn't set)
authorNoel Power <noel.power@suse.com>
Mon, 26 Nov 2018 14:55:02 +0000 (14:55 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:25 +0000 (10:38 +0100)
commitf4c0343dc4288e9cd00d7325633949020c3d300b
treedf306d47bb5f539b0ddf153df7b3f11033bec4e7
parent3eb7281ff369e36abf466066d403c48082fdb80d
selftest: Always set PYTHON to something sensible (if it isn't set)

Lots of test scripts need to run with the correct version
of python. With the correct shebang the script should run with the
correct version, the problem is that not all scripts are part
of the installation, some scripts are part of the source code,
and the shebang is not dynamically generated as yet.
It is safer if we are somewhat version neutral at the moment and
ignore the shebang and always run scripts from the test environment
with the python version (determined by PYTHON env variable) If this
env variable isn't set then set it according to the python version
that is running the tests

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/wscript