diff options
author | Jürg Billeter <j@bitron.ch> | 2019-11-26 11:57:48 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-12-17 14:18:11 +0100 |
commit | 2a96cb211625725246d293b11f0d4f51106bf3bf (patch) | |
tree | 26d03fa425d52d264f53279efd20aafc304331fb /tests | |
parent | aede9560744cbdcd3003ef1b1228430ffc9db18b (diff) | |
download | buildstream-2a96cb211625725246d293b11f0d4f51106bf3bf.tar.gz |
tests/integration/script.py: xfail for buildbox-run-userchroot
The root directory is not allowed to be writable by userchroot.
+ sh -c -e echo 'I can write to root' > /test
sh: can't create /test: Permission denied
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/script.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/tests/integration/script.py b/tests/integration/script.py index 67dd310bd..a03824ecd 100644 --- a/tests/integration/script.py +++ b/tests/integration/script.py @@ -6,7 +6,7 @@ import pytest from buildstream import _yaml from buildstream.testing import cli_integration as cli # pylint: disable=unused-import -from buildstream.testing._utils.site import HAVE_SANDBOX +from buildstream.testing._utils.site import HAVE_SANDBOX, BUILDBOX_RUN pytestmark = pytest.mark.integration @@ -60,6 +60,10 @@ def test_script(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason="Only available with a functioning sandbox") +@pytest.mark.xfail( + HAVE_SANDBOX == "buildbox-run" and BUILDBOX_RUN == "buildbox-run-userchroot", + reason="Root directory not writable with userchroot", +) def test_script_root(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, "checkout") @@ -92,7 +96,8 @@ def test_script_root(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason="Only available with a functioning sandbox") @pytest.mark.xfail( - HAVE_SANDBOX == "buildbox-run", reason="Read-only root directory not supported by buildbox-run", + HAVE_SANDBOX == "buildbox-run" and BUILDBOX_RUN != "buildbox-run-userchroot", + reason="Read-only root directory not supported by buildbox-run", ) def test_script_no_root(cli, datafiles): project = str(datafiles) @@ -166,6 +171,10 @@ def test_script_layout(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason="Only available with a functioning sandbox") +@pytest.mark.xfail( + HAVE_SANDBOX == "buildbox-run" and BUILDBOX_RUN == "buildbox-run-userchroot", + reason="Root directory not writable with userchroot", +) def test_regression_cache_corruption(cli, datafiles): project = str(datafiles) checkout_original = os.path.join(cli.directory, "checkout-original") @@ -206,6 +215,10 @@ def test_regression_tmpdir(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason="Only available with a functioning sandbox") +@pytest.mark.xfail( + HAVE_SANDBOX == "buildbox-run" and BUILDBOX_RUN == "buildbox-run-userchroot", + reason="Root directory not writable with userchroot", +) def test_regression_cache_corruption_2(cli, datafiles): project = str(datafiles) checkout_original = os.path.join(cli.directory, "checkout-original") |