summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/functional/lib/rspamd.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/functional/lib/rspamd.py b/test/functional/lib/rspamd.py
index 9f7176ca9..928414868 100644
--- a/test/functional/lib/rspamd.py
+++ b/test/functional/lib/rspamd.py
@@ -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():