summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-10-19 14:49:44 -0400
committerscheibelp <scheibel1@llnl.gov>2017-11-02 18:45:40 -0700
commit26724688b133d21b399e72def17827623de9d9a1 (patch)
tree71ac013b10ca72afccac512ad5e9348146c11d7c /lib
parentea62347c46064bae1c771ee9825b0b943489b6c1 (diff)
downloadspack-26724688b133d21b399e72def17827623de9d9a1.tar.gz
spack-26724688b133d21b399e72def17827623de9d9a1.tar.bz2
spack-26724688b133d21b399e72def17827623de9d9a1.tar.xz
spack-26724688b133d21b399e72def17827623de9d9a1.zip
view: test viewing external packages
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/cmd/view.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/spack/spack/test/cmd/view.py b/lib/spack/spack/test/cmd/view.py
index 0523ab182e..7c429f7fbc 100644
--- a/lib/spack/spack/test/cmd/view.py
+++ b/lib/spack/spack/test/cmd/view.py
@@ -30,6 +30,15 @@ install = SpackCommand('install')
view = SpackCommand('view')
+def test_view_external(
+ tmpdir, builtin_mock, mock_archive, mock_fetch, config,
+ install_mockery):
+ install('externaltool')
+ viewpath = str(tmpdir.mkdir('view'))
+ output = view('symlink', viewpath, 'externaltool')
+ assert 'Skipping external package: externaltool' in output
+
+
def test_view_extension(
tmpdir, builtin_mock, mock_archive, mock_fetch, config,
install_mockery):