test_env_install_two_specs_same_dep: properly check installed specs (#29222)

This commit is contained in:
Tamara Dahlgren 2022-03-01 01:35:14 -08:00 committed by GitHub
parent f60c6ca485
commit b20df12d09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -291,11 +291,11 @@ def test_env_install_two_specs_same_dep(
assert 'depb: Executing phase:' in out
assert 'a: Executing phase:' in out
depb = spack.repo.path.get_pkg_class('depb')
assert depb.installed, 'Expected depb to be installed'
depb = spack.store.db.query_one('depb', installed=True)
assert depb, 'Expected depb to be installed'
a = spack.repo.path.get_pkg_class('a')
assert a.installed, 'Expected a to be installed'
a = spack.store.db.query_one('a', installed=True)
assert a, 'Expected a to be installed'
def test_remove_after_concretize():