summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-02-19 14:19:43 +0100
committerJürg Billeter <j@bitron.ch>2019-02-19 14:19:43 +0100
commit1cd27edfe09864ad44b077bf80a94a1927b7ecb9 (patch)
tree19bd81682084dc03ace9ea105bc465f63b9dd71a
parent4a002bee3bb267c5566a041a912bda424c47aa17 (diff)
downloadbuildstream-1cd27edfe09864ad44b077bf80a94a1927b7ecb9.tar.gz
tests/integration/shell.py: Skip test_isolated_no_mount without sandbox
This test passes without a sandbox but only because the exit code is also non-zero in that case. It didn't actually perform the desired test. This test is very slow on WSL, so let's skip it if there is no sandbox.
-rw-r--r--tests/integration/shell.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/integration/shell.py b/tests/integration/shell.py
index d1a551f53..615ea9d87 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')