diff options
-rw-r--r-- | tests/integration/shell.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/integration/shell.py b/tests/integration/shell.py index d1a551f53..97c4d0cad 100644 --- a/tests/integration/shell.py +++ b/tests/integration/shell.py @@ -212,6 +212,7 @@ def test_host_files_expand_environ(cli, tmpdir, datafiles, path): # Test that bind mounts defined in project.conf dont mount in isolation @pytest.mark.parametrize("path", [("/etc/pony.conf"), ("/usr/share/pony/pony.txt")]) @pytest.mark.datafiles(DATA_DIR) +@pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') def test_isolated_no_mount(cli, tmpdir, datafiles, path): project = os.path.join(datafiles.dirname, datafiles.basename) ponyfile = os.path.join(project, 'files', 'shell-mount', 'pony.txt') @@ -226,6 +227,8 @@ def test_isolated_no_mount(cli, tmpdir, datafiles, path): } }) assert result.exit_code != 0 + assert path in result.stderr + assert 'No such file or directory' in result.stderr # Test that we warn about non-existing files on the host if the mount is not |