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`
This commit is contained in:
parent
561da58cea
commit
827b1f1437
1 changed files with 2 additions and 1 deletions
|
@ -856,6 +856,8 @@ def test_skip_requirement_when_default_requirement_condition_cannot_be_met(
|
||||||
|
|
||||||
def test_requires_directive(concretize_scope, mock_packages):
|
def test_requires_directive(concretize_scope, mock_packages):
|
||||||
compilers_yaml = pathlib.Path(concretize_scope) / "compilers.yaml"
|
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_yaml.write_text(
|
||||||
"""
|
"""
|
||||||
compilers::
|
compilers::
|
||||||
|
@ -867,7 +869,6 @@ def test_requires_directive(concretize_scope, mock_packages):
|
||||||
f77: null
|
f77: null
|
||||||
fc: null
|
fc: null
|
||||||
operating_system: debian6
|
operating_system: debian6
|
||||||
target: x86_64
|
|
||||||
modules: []
|
modules: []
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue