summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/install_test.py4
-rw-r--r--var/spack/repos/builtin/packages/py-shapely/package.py1
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/spack/spack/install_test.py b/lib/spack/spack/install_test.py
index c27e8ea60a..559b5b389c 100644
--- a/lib/spack/spack/install_test.py
+++ b/lib/spack/spack/install_test.py
@@ -757,6 +757,10 @@ def test_process(pkg: Pb, kwargs):
pkg.tester.status(pkg.spec.name, TestStatus.SKIPPED)
return
+ # Make sure properly named build-time test methods actually run as
+ # stand-alone tests.
+ pkg.run_tests = True
+
# run test methods from the package and all virtuals it provides
v_names = virtuals(pkg)
test_specs = [pkg.spec] + [spack.spec.Spec(v_name) for v_name in sorted(v_names)]
diff --git a/var/spack/repos/builtin/packages/py-shapely/package.py b/var/spack/repos/builtin/packages/py-shapely/package.py
index 33c75a934e..f00f24170e 100644
--- a/var/spack/repos/builtin/packages/py-shapely/package.py
+++ b/var/spack/repos/builtin/packages/py-shapely/package.py
@@ -101,6 +101,7 @@ class PyShapely(PythonPackage):
@run_after("install")
@on_package_attributes(run_tests=True)
def test_install(self):
+ """Run pytest tests"""
# https://shapely.readthedocs.io/en/latest/installation.html#testing-shapely
if self.version >= Version("2"):
with working_dir("spack-test", create=True):