about summary refs log tree commit diff stats
path: root/test/utils/testset.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2014-12-12 13:02:41 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2014-12-12 13:02:41 +0100
commit33ef2982528634c9de6cf5a806a1a86df2e14db8 (patch)
treee335144a535519e561b0d9c727c621b657dc907f /test/utils/testset.py
parent57b10448bb4875aab9129adbf9395ef4df31a85b (diff)
downloadmiasm-33ef2982528634c9de6cf5a806a1a86df2e14db8.tar.gz
miasm-33ef2982528634c9de6cf5a806a1a86df2e14db8.zip
Test: remove hardcoded python path (Tx to Aymeric Vincent)
Diffstat (limited to 'test/utils/testset.py')
-rw-r--r--test/utils/testset.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/utils/testset.py b/test/utils/testset.py
index 94e5fe1f..0fa8329b 100644
--- a/test/utils/testset.py
+++ b/test/utils/testset.py
@@ -1,5 +1,6 @@
 import os
 import subprocess
+import sys
 from multiprocessing import cpu_count, Queue, Process
 from test import Test
 
@@ -142,7 +143,8 @@ class TestSet(object):
             os.chdir(test.base_dir)
 
             # Launch test
-            testpy = subprocess.Popen(["python"] + init_args + test.command_line,
+            testpy = subprocess.Popen(([sys.executable] +
+                                       init_args + test.command_line),
                                       stdout=subprocess.PIPE,
                                       stderr=subprocess.PIPE)
             outputs = testpy.communicate()