view: test viewing external packages

This commit is contained in:
Ben Boeckel 2017-10-19 14:49:44 -04:00 committed by scheibelp
parent ea62347c46
commit 26724688b1

View file

@ -30,6 +30,15 @@
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):