From 6e41d2f679570109865179eb50426e5235819c37 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sun, 18 Feb 2018 10:37:54 +0100 Subject: [PATCH] Work around bug related to running ctests thorugh make test. --- debian/rules | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index bb63f205f..dc9bca660 100755 --- a/debian/rules +++ b/debian/rules @@ -50,7 +50,9 @@ override_dh_auto_configure: $(BUILD_FLAGS_FILE) $(BOOTSTRAP_PARALLEL) --verbose override_dh_auto_test: - HOME="`pwd`/Build" dh_auto_test --buildsystem=cmake -- ARGS="-E CTestTestUpload --timeout 2000" + # Pass -j1 to "make test" as a workaround, see https://gitlab.kitware.com/cmake/cmake/issues/17165 + # The tests are still run in parallel as debhelper pass -jX as ARGS to ctest. + dh_auto_test --buildsystem=cmake -- -j1 ARGS="-E CTestTestUpload --timeout 2000" override_dh_auto_clean: dh_auto_clean