Add some comments b/c I didn't understand my own test.
This commit is contained in:
parent
0fc3b58890
commit
3f3ceb24c4
@ -167,12 +167,15 @@ def test_handle_unknown_package(self):
|
|||||||
def test_find(self):
|
def test_find(self):
|
||||||
"""Test that finding specs within an install layout works."""
|
"""Test that finding specs within an install layout works."""
|
||||||
packages = list(spack.db.all_packages())[:max_packages]
|
packages = list(spack.db.all_packages())[:max_packages]
|
||||||
|
|
||||||
|
# Create install prefixes for all packages in the list
|
||||||
installed_specs = {}
|
installed_specs = {}
|
||||||
for pkg in packages:
|
for pkg in packages:
|
||||||
spec = pkg.spec.concretized()
|
spec = pkg.spec.concretized()
|
||||||
installed_specs[spec.name] = spec
|
installed_specs[spec.name] = spec
|
||||||
self.layout.create_install_directory(spec)
|
self.layout.create_install_directory(spec)
|
||||||
|
|
||||||
|
# Make sure all the installed specs appear in DirectoryLayout.all_specs()
|
||||||
found_specs = dict((s.name, s) for s in self.layout.all_specs())
|
found_specs = dict((s.name, s) for s in self.layout.all_specs())
|
||||||
for name, spec in found_specs.items():
|
for name, spec in found_specs.items():
|
||||||
self.assertTrue(name in found_specs)
|
self.assertTrue(name in found_specs)
|
||||||
|
Loading…
Reference in New Issue
Block a user