diff options
author | Noel Power <noel.power@suse.com> | 2018-08-04 15:38:40 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-10-23 05:50:24 +0200 |
commit | e53821793074691e92d71e49023dd4b61efd5f1c (patch) | |
tree | 8b1e868f94df5f825a1cda092adcc806f767c3e8 /selftest/selftesthelpers.py | |
parent | dcf787b26354d133a26dcad74cc62fe62b59a87d (diff) | |
download | samba-e53821793074691e92d71e49023dd4b61efd5f1c.tar.gz |
PY3: In a pure PY3 build filter-subunit was getting called without 'python'
tests were getting called with "| ${src}/selftest/filter-subunit" which
resulted in filter-subunit getting execve'd without a calling python. This
resulted in /usr/bin/python (default python) getting called and subsequent
imports failing.
Diffstat (limited to 'selftest/selftesthelpers.py')
-rw-r--r-- | selftest/selftesthelpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/selftest/selftesthelpers.py b/selftest/selftesthelpers.py index 7d469e3f35a..25977efe111 100644 --- a/selftest/selftesthelpers.py +++ b/selftest/selftesthelpers.py @@ -92,7 +92,7 @@ def add_prefix(prefix, env, support_list=False): listopt = "$LISTOPT " else: listopt = "" - return "%s/selftest/filter-subunit %s--fail-on-empty --prefix=\"%s.\" --suffix=\"(%s)\"" % (srcdir(), listopt, prefix, env) + return "%s %s/selftest/filter-subunit %s--fail-on-empty --prefix=\"%s.\" --suffix=\"(%s)\"" % (python, srcdir(), listopt, prefix, env) def plantestsuite_loadlist(name, env, cmdline): |