[ovs-dev] [PATCH] tests: Allow only 1 job at once during recheck (RECHECK=yes)

Timothy Redaelli tredaelli at redhat.com
Tue Apr 3 13:38:28 UTC 2018


Currently some tests fails if run with multiple jobs at once, so
this commit disables parallel jobs during the recheck phase.

Signed-off-by: Timothy Redaelli <tredaelli at redhat.com>
---
 tests/automake.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/automake.mk b/tests/automake.mk
index 780d3b830..c345d5208 100644
--- a/tests/automake.mk
+++ b/tests/automake.mk
@@ -141,7 +141,7 @@ AUTOTEST_PATH = utilities:vswitchd:ovsdb:vtep:tests:$(PTHREAD_WIN32_DIR_DLL):$(S
 
 check-local:
 	set $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH) $(TESTSUITEFLAGS); \
-	"$$@" || (test X'$(RECHECK)' = Xyes && "$$@" --recheck)
+	"$$@" || (test X'$(RECHECK)' = Xyes && "$$@" -j1 --recheck)
 
 # Python Coverage support.
 # Requires coverage.py http://nedbatchelder.com/code/coverage/.
@@ -169,7 +169,7 @@ GENHTML_OPTS = -q --branch-coverage --num-spaces 4
 check-lcov: all $(check_DATA) clean-lcov
 	find . -name '*.gcda' | xargs -n1 rm -f
 	-set $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH) $(TESTSUITEFLAGS); \
-	"$$@" || (test X'$(RECHECK)' = Xyes && "$$@" --recheck)
+	"$$@" || (test X'$(RECHECK)' = Xyes && "$$@" -j1 --recheck)
 	$(MKDIR_P) tests/lcov
 	lcov $(LCOV_OPTS) -o tests/lcov/coverage.info
 	genhtml $(GENHTML_OPTS) -o tests/lcov tests/lcov/coverage.info
-- 
2.14.3



More information about the dev mailing list