diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-21 18:34:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-21 18:34:02 +0100 |
commit | 57c21062f261eb595f8e64cd32d7df9604b7e754 (patch) | |
tree | 14003f64719e763fb4d2f1b2dca3594c4ea67681 /test/functional/lib | |
parent | f3c2efdfb53b9d5de3f5de24965c363df226615f (diff) | |
parent | c16e148cdaaffc9fedb34c0b5c201e6c18bd079e (diff) | |
download | rspamd-57c21062f261eb595f8e64cd32d7df9604b7e754.tar.gz rspamd-57c21062f261eb595f8e64cd32d7df9604b7e754.zip |
Merge pull request #2935 from citrin/clickhouse
[Minor] ClickHouse: Improve schema and tests
Diffstat (limited to 'test/functional/lib')
-rw-r--r-- | test/functional/lib/rspamd.py | 9 | ||||
-rw-r--r-- | test/functional/lib/rspamd.robot | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/test/functional/lib/rspamd.py b/test/functional/lib/rspamd.py index ee76a9b45..9f7176ca9 100644 --- a/test/functional/lib/rspamd.py +++ b/test/functional/lib/rspamd.py @@ -102,7 +102,14 @@ def HTTP(method, host, port, path, data=None, headers={}): return [s, t] def make_temporary_directory(): - return tempfile.mkdtemp() + """Creates and returns a unique temporary directory + + Example: + | ${TMPDIR} = | Make Temporary Directory | + """ + dirname = tempfile.mkdtemp() + os.chmod(dirname, 0755) + return dirname def make_temporary_file(): return tempfile.mktemp() diff --git a/test/functional/lib/rspamd.robot b/test/functional/lib/rspamd.robot index f54f64b48..01e85a8b3 100644 --- a/test/functional/lib/rspamd.robot +++ b/test/functional/lib/rspamd.robot @@ -73,7 +73,7 @@ Generic Teardown Run Keyword If '${CONTROLLER_ERRORS}' == 'True' Check Controller Errors Shutdown Process With Children ${RSPAMD_PID} Log does not contain segfault record - Save Run Results ${TMPDIR} rspamd.log redis.log rspamd.conf clickhouse-server.log clickhouse-server.err.log clickhouse-config.xml + Save Run Results ${TMPDIR} rspamd.log redis.log rspamd.conf clickhouse-config.xml Collect Lua Coverage Cleanup Temporary Directory ${TMPDIR} |