Jürg Billeter pushed to branch master at BuildStream / buildstream
Commits:
-
1cd27edf
by Jürg Billeter at 2019-02-19T13:19:43Z
-
69675d22
by Jürg Billeter at 2019-02-19T13:27:31Z
-
99764715
by Jürg Billeter at 2019-02-19T15:03:58Z
1 changed file:
Changes:
| ... | ... | @@ -212,6 +212,7 @@ def test_host_files_expand_environ(cli, tmpdir, datafiles, path): |
| 212 | 212 |
# Test that bind mounts defined in project.conf dont mount in isolation
|
| 213 | 213 |
@pytest.mark.parametrize("path", [("/etc/pony.conf"), ("/usr/share/pony/pony.txt")])
|
| 214 | 214 |
@pytest.mark.datafiles(DATA_DIR)
|
| 215 |
+@pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox')
|
|
| 215 | 216 |
def test_isolated_no_mount(cli, tmpdir, datafiles, path):
|
| 216 | 217 |
project = os.path.join(datafiles.dirname, datafiles.basename)
|
| 217 | 218 |
ponyfile = os.path.join(project, 'files', 'shell-mount', 'pony.txt')
|
| ... | ... | @@ -226,6 +227,8 @@ def test_isolated_no_mount(cli, tmpdir, datafiles, path): |
| 226 | 227 |
}
|
| 227 | 228 |
})
|
| 228 | 229 |
assert result.exit_code != 0
|
| 230 |
+ assert path in result.stderr
|
|
| 231 |
+ assert 'No such file or directory' in result.stderr
|
|
| 229 | 232 |
|
| 230 | 233 |
|
| 231 | 234 |
# Test that we warn about non-existing files on the host if the mount is not
|
