From 629f94b4e19d90496043e5ed4c1da44897f035e1 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Fri, 19 Mar 2021 19:04:53 +0100 Subject: CI: drastically reduce the number of tests for package only PRs (#22410) PRs that change only package recipes will only run tests under "package_sanity.py" and without coverage. This should result in a huge drop the cpu-time spent in CI for most PRs. --- share/spack/qa/run-unit-tests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests index 6cef3cf679..3bcfc6c400 100755 --- a/share/spack/qa/run-unit-tests +++ b/share/spack/qa/run-unit-tests @@ -44,7 +44,7 @@ spack -p --lines 20 spec mpileaks%gcc ^elfutils@0.170 #----------------------------------------------------------- if [[ "$ONLY_PACKAGES" == "true" ]]; then echo "ONLY PACKAGE RECIPES CHANGED [skipping slow unit tests]" - export PYTEST_ADDOPTS='-m "not maybeslow"' + export PYTEST_ADDOPTS='-k "package_sanity" -m "not maybeslow"' fi $coverage_run $(which spack) unit-test -x --verbose -- cgit v1.2.3-70-g09d2