diff --git a/jenkins/build-opm-module.sh b/jenkins/build-opm-module.sh index 8dad8b031..293cbadc5 100755 --- a/jenkins/build-opm-module.sh +++ b/jenkins/build-opm-module.sh @@ -112,11 +112,12 @@ function build_module { cmake --build . fi test $? -eq 0 || exit 2 + TESTTHREADS=${TESTTHREADS:-1} if test -z "$CTEST_CONFIGURATION" then - ctest -T Test --no-compress-output + ctest -T Test --no-compress-output -j$TESTTHREADS else - ctest -C $CTEST_CONFIGURATION --timeout 5000 -T Test --no-compress-output + ctest -j$TESTTHREADS -C $CTEST_CONFIGURATION --timeout 5000 -T Test --no-compress-output fi # Convert to junit format