summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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):