diff options
author | Jürg Billeter <j@bitron.ch> | 2019-11-21 07:16:26 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-12-03 12:06:31 +0000 |
commit | e090301959d7ef5a5de8e4c0e3a1f373d2c4c7c5 (patch) | |
tree | 68ee4807563ac0828377feaeaa8d577a28ca5a0b /tests | |
parent | 1f124cfd0e4cc913531f3846c928a6d56ffc409f (diff) | |
download | buildstream-e090301959d7ef5a5de8e4c0e3a1f373d2c4c7c5.tar.gz |
tests: source_determinism.py: Do not use too restrictive test umasksjuerg/casd-separate-user
To protect the local cache of buildbox-casd from corruption without the
use of FUSE, buildbox-casd has to run as a different user.
Use less restrictive umasks in the source determinism tests to allow
buildbox-casd to function when it is running as a separate user.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/source-determinism.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/integration/source-determinism.py b/tests/integration/source-determinism.py index a349f9eeb..14559759d 100644 --- a/tests/integration/source-determinism.py +++ b/tests/integration/source-determinism.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, CASD_SEPARATE_USER DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "project") @@ -69,4 +69,9 @@ def test_deterministic_source_local(cli, tmpdir, datafiles): finally: cli.remove_artifact_from_cache(project, element_name) - assert get_value_for_mask(0o7777) == get_value_for_mask(0o0700) + if CASD_SEPARATE_USER: + # buildbox-casd running as separate user of the same group can't + # read files with too restrictive permissions. + assert get_value_for_mask(0o7777) == get_value_for_mask(0o0770) + else: + assert get_value_for_mask(0o7777) == get_value_for_mask(0o0700) |