diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-24 12:37:55 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-24 12:37:55 +0100 |
commit | cbec6f25822c33615b8acb0fabc59e5969fdec91 (patch) | |
tree | 7c2e8f8f69ae5bf6eb87cdfd593670065b7b5b19 /test/functional/lib | |
parent | 8b4384d70b0a94313fb5299485750dcd94d18ed2 (diff) | |
download | rspamd-cbec6f25822c33615b8acb0fabc59e5969fdec91.tar.gz rspamd-cbec6f25822c33615b8acb0fabc59e5969fdec91.zip |
[Test] Fix permissions mask
Diffstat (limited to 'test/functional/lib')
-rw-r--r-- | test/functional/lib/rspamd.py | 9 |
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(): |