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