summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-06-07 15:39:40 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2015-06-07 15:39:40 -0700
commit3f3ceb24c49b8d466048491743e9628bab44f46a (patch)
tree194e52db611fc033154674b9c884d903f9be63c8 /lib
parent0fc3b58890ddb18c4a2384c6f015c8f9417a1c01 (diff)
downloadspack-3f3ceb24c49b8d466048491743e9628bab44f46a.tar.gz
spack-3f3ceb24c49b8d466048491743e9628bab44f46a.tar.bz2
spack-3f3ceb24c49b8d466048491743e9628bab44f46a.tar.xz
spack-3f3ceb24c49b8d466048491743e9628bab44f46a.zip
Add some comments b/c I didn't understand my own test.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/directory_layout.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/spack/test/directory_layout.py b/lib/spack/spack/test/directory_layout.py
index beac038410..b3ad8efec4 100644
--- a/lib/spack/spack/test/directory_layout.py
+++ b/lib/spack/spack/test/directory_layout.py
@@ -167,12 +167,15 @@ class DirectoryLayoutTest(unittest.TestCase):
def test_find(self):
"""Test that finding specs within an install layout works."""
packages = list(spack.db.all_packages())[:max_packages]
+
+ # Create install prefixes for all packages in the list
installed_specs = {}
for pkg in packages:
spec = pkg.spec.concretized()
installed_specs[spec.name] = 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())
for name, spec in found_specs.items():
self.assertTrue(name in found_specs)