summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2024-08-13 16:58:00 -0700
committerGitHub <noreply@github.com>2024-08-13 16:58:00 -0700
commit8ba6e7eed20faacf77314f3532316f6081b1e9cf (patch)
tree44b52950788e9a458da77f27d5e55695ccef9fd4 /lib
parente40c10509d949f89e7ff442e8e5954a365550ec7 (diff)
downloadspack-8ba6e7eed20faacf77314f3532316f6081b1e9cf.tar.gz
spack-8ba6e7eed20faacf77314f3532316f6081b1e9cf.tar.bz2
spack-8ba6e7eed20faacf77314f3532316f6081b1e9cf.tar.xz
spack-8ba6e7eed20faacf77314f3532316f6081b1e9cf.zip
Bugfix: allow test_* build-time and stand-alone tests (#45699)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/install_test.py4
1 files changed, 4 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)]