diff options
author | Vegard Sjonfjell <vegard@yahoo-inc.com> | 2016-11-14 15:49:42 +0100 |
---|---|---|
committer | Vegard Sjonfjell <vegard@yahoo-inc.com> | 2016-11-14 15:49:42 +0100 |
commit | b27c743bfec32e720e53111eccdbc4db6a33222b (patch) | |
tree | 936723ba161433f3b8319e02fd8a77b0b31633af /cppunit-parallelize.py | |
parent | d5ae3daefdaeacf092c310abf201ce302fec3b17 (diff) |
Add valgrind support
Diffstat (limited to 'cppunit-parallelize.py')
-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, |