diff options
-rwxr-xr-x | cppunit-parallelize.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cppunit-parallelize.py b/cppunit-parallelize.py index c6dba978cb6..5909a0cc015 100755 --- a/cppunit-parallelize.py +++ b/cppunit-parallelize.py @@ -28,9 +28,11 @@ def chunkify(lst, chunks): return result def build_processes(test_groups): + valgrind = os.getenv("VALGRIND") + testrunner = (valgrind, args.testrunner) if valgrind is not None else (args.testrunner,) processes = [] for group in test_groups: - cmd = (args.testrunner,) + tuple(group) + cmd = testrunner + tuple(group) processes.append((group, subprocess.Popen( cmd, |