This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-ponymail-unit-tests.git
The following commit(s) were added to refs/heads/master by this push:
new ac3b00f Don't assume python path
ac3b00f is described below
commit ac3b00f0ff9c27fd6276fa8123a899b2cb89d460
Author: Sebb <[email protected]>
AuthorDate: Thu Aug 13 23:17:43 2020 +0100
Don't assume python path
---
runall.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/runall.py b/runall.py
index caca35e..ab8d9cf 100755
--- a/runall.py
+++ b/runall.py
@@ -9,6 +9,7 @@ import time
import re
if __name__ == '__main__':
+ PYTHON3 = sys.executable
parser = argparse.ArgumentParser(description='Command line options.')
parser.add_argument('--rootdir', dest='rootdir', type=str, required=True,
help="Root directory of Apache Pony Mail")
@@ -40,7 +41,7 @@ if __name__ == '__main__':
tests_total += 1
print("Running '%s' tests from %s..." % (test_type, spec_file))
try:
- rv = subprocess.check_output(('/usr/bin/python3',
'tests/test-%s.py' % test_type, '--rootdir', args.rootdir, '--load', spec_file))
+ rv = subprocess.check_output((PYTHON3, 'tests/test-%s.py'
% test_type, '--rootdir', args.rootdir, '--load', spec_file))
tests_success += 1
except subprocess.CalledProcessError as e:
rv = e.output