From b27c743bfec32e720e53111eccdbc4db6a33222b Mon Sep 17 00:00:00 2001 From: Vegard Sjonfjell Date: Mon, 14 Nov 2016 15:49:42 +0100 Subject: Add valgrind support --- cppunit-parallelize.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3