diff options
Diffstat (limited to 'lib/spack/spack/test/cmd/env.py')
-rw-r--r-- | lib/spack/spack/test/cmd/env.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/spack/spack/test/cmd/env.py b/lib/spack/spack/test/cmd/env.py index 72f1b86347..44b5caf5f9 100644 --- a/lib/spack/spack/test/cmd/env.py +++ b/lib/spack/spack/test/cmd/env.py @@ -139,6 +139,19 @@ def test_concretize(): assert any(x.name == 'mpileaks' for x in env_specs) +def test_env_uninstalled_specs(install_mockery, mock_fetch): + e = ev.create('test') + e.add('cmake-client') + e.concretize() + assert any(s.name == 'cmake-client' for s in e.uninstalled_specs()) + e.install_all() + assert not any(s.name == 'cmake-client' for s in e.uninstalled_specs()) + e.add('mpileaks') + e.concretize() + assert not any(s.name == 'cmake-client' for s in e.uninstalled_specs()) + assert any(s.name == 'mpileaks' for s in e.uninstalled_specs()) + + def test_env_install_all(install_mockery, mock_fetch): e = ev.create('test') e.add('cmake-client') |