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 f5854eee0cf32462b25ea02b42c805453873f4a4
Author: Tristan Maat <[email protected]>
AuthorDate: Mon Nov 11 13:44:45 2019 +0000

    Make junction test subproject configuration group-readable
---
 src/buildstream/testing/_sourcetests/track_cross_junction.py | 3 +++
 tests/frontend/track.py                                      | 1 +
 2 files changed, 4 insertions(+)

diff --git a/src/buildstream/testing/_sourcetests/track_cross_junction.py 
b/src/buildstream/testing/_sourcetests/track_cross_junction.py
index 550f57f..c9f82dd 100644
--- a/src/buildstream/testing/_sourcetests/track_cross_junction.py
+++ b/src/buildstream/testing/_sourcetests/track_cross_junction.py
@@ -22,6 +22,7 @@
 import os
 
 import pytest
+import stat
 
 from buildstream import _yaml
 from .._utils import generate_junction
@@ -79,6 +80,8 @@ def generate_project(tmpdir, name, kind, config=None):
     }
     project_conf.update(config)
     _yaml.roundtrip_dump(project_conf, os.path.join(subproject_path, 
'project.conf'))
+    os.chmod(os.path.join(subproject_path, 'project.conf'),
+             stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR | stat.S_IRGRP | 
stat.S_IWGRP | stat.S_IXGRP)
     add_plugins_conf(subproject_path, kind)
 
     return project_name, subproject_path
diff --git a/tests/frontend/track.py b/tests/frontend/track.py
index a628043..f30d45e 100644
--- a/tests/frontend/track.py
+++ b/tests/frontend/track.py
@@ -28,6 +28,7 @@ def generate_element(repo, element_path, dep_name=None):
         element['depends'] = [dep_name]
 
     _yaml.roundtrip_dump(element, element_path)
+    os.chmod(element_path, stat.S_IRUSR | stat.S_IRGRP)
 
 
 @pytest.mark.datafiles(DATA_DIR)

Reply via email to