summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-03-19 19:04:53 +0100
committerGitHub <noreply@github.com>2021-03-19 11:04:53 -0700
commit629f94b4e19d90496043e5ed4c1da44897f035e1 (patch)
tree2d6a6e0ead89572116aa1ddd1c20b84231b3c52b /share
parent245d67ed5cedb22a7e3ccfafde51133a7ac695f8 (diff)
downloadspack-629f94b4e19d90496043e5ed4c1da44897f035e1.tar.gz
spack-629f94b4e19d90496043e5ed4c1da44897f035e1.tar.bz2
spack-629f94b4e19d90496043e5ed4c1da44897f035e1.tar.xz
spack-629f94b4e19d90496043e5ed4c1da44897f035e1.zip
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.
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/qa/run-unit-tests2
1 files changed, 1 insertions, 1 deletions
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