summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2022-03-01 01:35:14 -0800
committerGitHub <noreply@github.com>2022-03-01 10:35:14 +0100
commitb20df12d09b190798837c6cb9e70fb8e16565d75 (patch)
tree0fa2b0e01fb48cfb446ec6828949df9d79801bb1 /lib
parentf60c6ca485c543a8142c13a932ea353cdaffa331 (diff)
downloadspack-b20df12d09b190798837c6cb9e70fb8e16565d75.tar.gz
spack-b20df12d09b190798837c6cb9e70fb8e16565d75.tar.bz2
spack-b20df12d09b190798837c6cb9e70fb8e16565d75.tar.xz
spack-b20df12d09b190798837c6cb9e70fb8e16565d75.zip
test_env_install_two_specs_same_dep: properly check installed specs (#29222)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/cmd/env.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/spack/test/cmd/env.py b/lib/spack/spack/test/cmd/env.py
index 67aef94bb8..a240923358 100644
--- a/lib/spack/spack/test/cmd/env.py
+++ b/lib/spack/spack/test/cmd/env.py
@@ -291,11 +291,11 @@ env:
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():