diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2024-01-03 23:17:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 08:17:54 +0100 |
commit | 827b1f143745f6f3a855a4787e563dc2034ebe66 (patch) | |
tree | 201eed9bb10ef346cdc47e8ae88d34c70513ff6e | |
parent | 561da58cea1475927b22b95aa7a6b567ef1105f3 (diff) | |
download | spack-827b1f143745f6f3a855a4787e563dc2034ebe66.tar.gz spack-827b1f143745f6f3a855a4787e563dc2034ebe66.tar.bz2 spack-827b1f143745f6f3a855a4787e563dc2034ebe66.tar.xz spack-827b1f143745f6f3a855a4787e563dc2034ebe66.zip |
bugfix: make `test_requires_directive` work on more platforms (#41943)
Literal compiler config in `test_requires_directive` specifically lists `target:
x86_64`, but it doesn't need to, and the unnecessary target makes the test fail on
non-`x86_64` machines.
- [x] Remove target from config yaml in `test_requires_directive`
-rw-r--r-- | lib/spack/spack/test/concretize_requirements.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/test/concretize_requirements.py b/lib/spack/spack/test/concretize_requirements.py index e1f546f7e1..7b8f825eae 100644 --- a/lib/spack/spack/test/concretize_requirements.py +++ b/lib/spack/spack/test/concretize_requirements.py @@ -856,6 +856,8 @@ def test_skip_requirement_when_default_requirement_condition_cannot_be_met( def test_requires_directive(concretize_scope, mock_packages): compilers_yaml = pathlib.Path(concretize_scope) / "compilers.yaml" + + # NOTE: target is omitted here so that the test works on aarch64, as well. compilers_yaml.write_text( """ compilers:: @@ -867,7 +869,6 @@ compilers:: f77: null fc: null operating_system: debian6 - target: x86_64 modules: [] """ ) |