From 4f0a91a8a15f052cab6ac42bdd12bf00a7460946 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Tue, 24 Nov 2015 12:49:33 +0000 Subject: [PATCH] test: Respect parallel build rules during make check Signed-off-by: Ikey Doherty --- test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 8125408..70e4073 100644 --- a/test.py +++ b/test.py @@ -25,6 +25,7 @@ import glob import os import tarball import subprocess +import config tests_config = "" skip_tests = False @@ -68,8 +69,9 @@ def scan_for_tests(dir): if len(tests_config) > 0: return + makeflags = "%{?_smp_mflags} " if config.parallel_build else "" testsuites = { - "makecheck": "make VERBOSE=1 V=1 %{?_smp_mflags} check", + "makecheck": "make VERBOSE=1 V=1 {}check".format(makeflags), "perlcheck": "make TEST_VERBOSE=1 test", "setup.py": "PYTHONPATH=%{buildroot}/usr/lib/python2.7/site-packages python2 setup.py test", "cmake": "pushd clr-build ; make test ; popd",