summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/test/package_sanity.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/spack/spack/test/package_sanity.py b/lib/spack/spack/test/package_sanity.py
index 3f56b7c6ba..0c26fd7d95 100644
--- a/lib/spack/spack/test/package_sanity.py
+++ b/lib/spack/spack/test/package_sanity.py
@@ -27,13 +27,12 @@ import re
import pytest
+import spack.paths
import spack.repo
-from spack.paths import mock_packages_path
-from spack.repo import RepoPath
-def check_db():
- """Get all packages in a DB to make sure they work."""
+def check_repo():
+ """Get all packages in the builtin repo to make sure they work."""
for name in spack.repo.all_package_names():
spack.repo.get(name)
@@ -41,14 +40,14 @@ def check_db():
@pytest.mark.maybeslow
def test_get_all_packages():
"""Get all packages once and make sure that works."""
- check_db()
+ check_repo()
def test_get_all_mock_packages():
"""Get the mock packages once each too."""
- db = RepoPath(mock_packages_path)
+ db = spack.repo.RepoPath(spack.paths.mock_packages_path)
with spack.repo.swap(db):
- check_db()
+ check_repo()
def test_all_versions_are_lowercase():