fix requires test for aarch64 (#33656)

This commit is contained in:
Greg Becker 2022-11-04 11:12:55 -07:00 committed by GitHub
parent ac9172fdbc
commit 17eaf34902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1904,11 +1904,11 @@ def test_require_targets_are_allowed(self, mutable_database):
pytest.xfail("Use case not supported by the original concretizer")
# Configuration to be added to packages.yaml
external_conf = {"all": {"require": "target=x86_64"}}
external_conf = {"all": {"require": "target=%s" % spack.platforms.test.Test.front_end}}
spack.config.set("packages", external_conf)
with spack.config.override("concretizer:reuse", False):
spec = Spec("mpich").concretized()
for s in spec.traverse():
assert s.satisfies("target=x86_64")
assert s.satisfies("target=%s" % spack.platforms.test.Test.front_end)