diff options
author | Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> | 2024-08-13 16:58:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-13 16:58:00 -0700 |
commit | 8ba6e7eed20faacf77314f3532316f6081b1e9cf (patch) | |
tree | 44b52950788e9a458da77f27d5e55695ccef9fd4 /lib | |
parent | e40c10509d949f89e7ff442e8e5954a365550ec7 (diff) | |
download | spack-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.py | 4 |
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)] |