summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-09-01 14:41:28 +0200
committerGitHub <noreply@github.com>2022-09-01 14:41:28 +0200
commit01298287f65a48d0f7d7f5135ef8e65c254332c3 (patch)
tree7a5112860a399d5cc68de1424c7fa36a2063b4c8
parent9dca54fdc8b39772a35dd431d7b5a57fcb8cc9ae (diff)
downloadspack-01298287f65a48d0f7d7f5135ef8e65c254332c3.tar.gz
spack-01298287f65a48d0f7d7f5135ef8e65c254332c3.tar.bz2
spack-01298287f65a48d0f7d7f5135ef8e65c254332c3.tar.xz
spack-01298287f65a48d0f7d7f5135ef8e65c254332c3.zip
Fix CI for package only PRs (#32473)
-rw-r--r--.github/workflows/unit_tests.yaml2
-rwxr-xr-xshare/spack/qa/run-unit-tests2
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml
index 99f055c789..b20d969a43 100644
--- a/.github/workflows/unit_tests.yaml
+++ b/.github/workflows/unit_tests.yaml
@@ -321,7 +321,7 @@ jobs:
rm lib/spack/docs/_spack_root
else
echo "ONLY PACKAGE RECIPES CHANGED [skipping coverage]"
- $(which spack) unit-test -x -m "not maybeslow" -k "package_sanity"
+ $(which spack) unit-test -x -m "not maybeslow" -k "test_all_virtual_packages_have_default_providers"
fi
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # @v2.1.0
if: ${{ needs.changes.outputs.with_coverage == 'true' }}
diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests
index c1fb57399d..6222cbccd9 100755
--- a/share/spack/qa/run-unit-tests
+++ b/share/spack/qa/run-unit-tests
@@ -48,7 +48,7 @@ $coverage_run $(which spack) python -c "import spack.pkg.builtin.mpileaks; repr(
#-----------------------------------------------------------
if [[ "$ONLY_PACKAGES" == "true" ]]; then
echo "ONLY PACKAGE RECIPES CHANGED [running only package sanity]"
- export PYTEST_ADDOPTS='-k "package_sanity" -m "not maybeslow"'
+ export PYTEST_ADDOPTS='-k "test_all_virtual_packages_have_default_providers" -m "not maybeslow"'
elif [[ "$SPACK_TEST_SOLVER" == "original" ]]; then
echo "ORIGINAL CONCRETIZER [skipping slow unit tests]"
export PYTEST_ADDOPTS='-m "not maybeslow"'