From 41860ef5f04d704be0ef9c3d0214875e75441e26 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 15 Sep 2015 23:52:17 +0200 Subject: [PATCH] test setup: stay away from the setgid mode bit for vagrant testing on misc. platforms, we can't know the group / we can't have the same group everywhere. but the OS won't let us set setgid bit if the file does not have our group. on netbsd, the created file somehow happens to have group "wheel", but vagrant is not in group wheel. --- borg/testsuite/archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/testsuite/archiver.py b/borg/testsuite/archiver.py index 02a6bc756..2ae565bb8 100644 --- a/borg/testsuite/archiver.py +++ b/borg/testsuite/archiver.py @@ -162,7 +162,7 @@ class ArchiverTestCase(ArchiverTestCaseBase): # Directory self.create_regular_file('dir2/file2', size=1024 * 80) # File mode - os.chmod('input/file1', 0o6755) + os.chmod('input/file1', 0o4755) # Hard link os.link(os.path.join(self.input_path, 'file1'), os.path.join(self.input_path, 'hardlink'))