]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Fix permissions mask
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 24 Jun 2019 11:37:55 +0000 (12:37 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 24 Jun 2019 11:37:55 +0000 (12:37 +0100)
test/functional/lib/rspamd.py

index 9f7176ca964a8b34c1aee9e00a9ee872b076e4ff..928414868cf570134857997cb0b445c847c00883 100644 (file)
@@ -10,6 +10,7 @@ import socket
 import sys
 import tempfile
 import json
+import stat
 from robot.libraries.BuiltIn import BuiltIn
 from robot.api import logger
 
@@ -108,7 +109,13 @@ def make_temporary_directory():
     | ${TMPDIR} = | Make Temporary Directory |
     """
     dirname = tempfile.mkdtemp()
-    os.chmod(dirname, 0755)
+    os.chmod(dirname, stat.S_IRUSR |
+             stat.S_IXUSR |
+             stat.S_IWUSR |
+             stat.S_IRGRP |
+             stat.S_IXGRP |
+             stat.S_IROTH |
+             stat.S_IXOTH)
     return dirname
 
 def make_temporary_file():