You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:46:29 UTC
[buildstream] 17/19: testing/integration.py: Make the integration
cache group-readable
This is an automated email from the ASF dual-hosted git repository.
root pushed a commit to branch tlater/casd-socket-permissions
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 2c93f0cc6e0962baf88c3c89059987988deaba03
Author: Tristan Maat <tr...@codethink.co.uk>
AuthorDate: Fri Nov 8 12:25:46 2019 +0000
testing/integration.py: Make the integration cache group-readable
---
src/buildstream/testing/integration.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/buildstream/testing/integration.py b/src/buildstream/testing/integration.py
index 01635de..c329abe 100644
--- a/src/buildstream/testing/integration.py
+++ b/src/buildstream/testing/integration.py
@@ -24,6 +24,7 @@ integration tests.
import os
import shutil
+import stat
import tempfile
import pytest
@@ -68,6 +69,15 @@ class IntegrationCache:
# the artifacts directory
try:
self.cachedir = tempfile.mkdtemp(dir=self.root, prefix='cache-')
+ os.chmod(
+ self.cachedir,
+ stat.S_IRUSR |
+ stat.S_IWUSR |
+ stat.S_IXUSR |
+ stat.S_IRGRP |
+ stat.S_IWGRP |
+ stat.S_IXGRP
+ )
except OSError as e:
raise AssertionError("Unable to create test directory !") from e