From 33ef2982528634c9de6cf5a806a1a86df2e14db8 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Fri, 12 Dec 2014 13:02:41 +0100 Subject: Test: remove hardcoded python path (Tx to Aymeric Vincent) --- test/utils/testset.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/utils/testset.py') 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() -- cgit 1.4.1