selftesthelpers: fix py3 tests with extra_path
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sat, 27 Oct 2018 21:53:49 +0000 (10:53 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 2 Nov 2018 02:48:52 +0000 (03:48 +0100)
commit1cf142c30abaec2e99cebca15ac61685723032ed
treefd5a4d409b614dc4146c7dc3de5e0f651080f445
parentf17a77af4602af02ebb05b8f6d6344c2dadf62f0
selftesthelpers: fix py3 tests with extra_path

If a test was supplied with extra_path, a PYTHONPATH= env variable was
prepended to the args list, but the py3_compatible clause assumed the
first args element was /usr/bin/python.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
selftest/selftesthelpers.py