You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/02/04 07:27:56 UTC

[buildstream] 05/10: tests/integration/filter.py: xfail for buildbox-run-userchroot

This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch tlater/buildbox-run-userchroot
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 6e417fa512b0766ed28b1c8c20957a5a0d5f32aa
Author: Jürg Billeter <j...@bitron.ch>
AuthorDate: Tue Nov 26 11:51:43 2019 +0100

    tests/integration/filter.py: xfail for buildbox-run-userchroot
    
    The root directory is not allowed to be writable by userchroot.
    
    	+ sh -e -c touch /foo
    	touch: /foo: Permission denied
---
 tests/integration/filter.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/integration/filter.py b/tests/integration/filter.py
index 2fca895..12061fe 100644
--- a/tests/integration/filter.py
+++ b/tests/integration/filter.py
@@ -7,7 +7,7 @@ import pytest
 
 from buildstream.testing import cli  # pylint: disable=unused-import
 from buildstream.testing.integration import assert_contains
-from buildstream.testing._utils.site import HAVE_SANDBOX
+from buildstream.testing._utils.site import HAVE_SANDBOX, BUILDBOX_RUN
 
 
 pytestmark = pytest.mark.integration
@@ -18,6 +18,10 @@ DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "project")
 
 @pytest.mark.datafiles(os.path.join(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_filter_pass_integration(datafiles, cli):
     project = str(datafiles)