summaryrefslogtreecommitdiffstats
path: root/cppunit-parallelize.py
diff options
context:
space:
mode:
authorVegard Sjonfjell <vegard@yahoo-inc.com>2016-11-14 15:49:42 +0100
committerVegard Sjonfjell <vegard@yahoo-inc.com>2016-11-14 15:49:42 +0100
commitb27c743bfec32e720e53111eccdbc4db6a33222b (patch)
tree936723ba161433f3b8319e02fd8a77b0b31633af /cppunit-parallelize.py
parentd5ae3daefdaeacf092c310abf201ce302fec3b17 (diff)
Add valgrind support
Diffstat (limited to 'cppunit-parallelize.py')
-rwxr-xr-xcppunit-parallelize.py4
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,