diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-06-01 16:30:20 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-06-01 16:36:51 +0200 |
commit | c07a20097f247302aa5a44c82b40006990141265 (patch) | |
tree | 1259b3704cea784e51f9d98674dbe61201167f9b /test/functional/cases/120_fuzzy | |
parent | 9d72040612f37dbabad845459eb61fd75eaae233 (diff) | |
download | rspamd-c07a20097f247302aa5a44c82b40006990141265.tar.gz rspamd-c07a20097f247302aa5a44c82b40006990141265.zip |
[Test] Check controller's error buffer
Diffstat (limited to 'test/functional/cases/120_fuzzy')
-rw-r--r-- | test/functional/cases/120_fuzzy/lib.robot | 6 | ||||
-rw-r--r-- | test/functional/cases/120_fuzzy/redis-general.robot | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/test/functional/cases/120_fuzzy/lib.robot b/test/functional/cases/120_fuzzy/lib.robot index 0458b98bf..c71618b22 100644 --- a/test/functional/cases/120_fuzzy/lib.robot +++ b/test/functional/cases/120_fuzzy/lib.robot @@ -91,11 +91,13 @@ Fuzzy Setup Keyed Fuzzy Setup Generic ${algorithm} ${EMPTY} ${check_settings} Fuzzy Setup Generic - [Arguments] ${algorithm} ${worker_settings} ${check_settings} + [Arguments] ${algorithm} ${worker_settings} ${check_settings} &{kwargs} + ${has_TMPDIR} = Evaluate 'TMPDIR' in $kwargs Set Suite Variable ${SETTINGS_FUZZY_WORKER} ${worker_settings} Set Suite Variable ${SETTINGS_FUZZY_CHECK} ${check_settings} Set Suite Variable ${ALGORITHM} ${algorithm} - Generic Setup + Run Keyword If '${has_TMPDIR}' == 'True' Generic Setup TMPDIR=&{kwargs}[TMPDIR] + ... ELSE Generic Setup Fuzzy Setup Plain Fasthash Fuzzy Setup Plain fasthash diff --git a/test/functional/cases/120_fuzzy/redis-general.robot b/test/functional/cases/120_fuzzy/redis-general.robot index e3889abbe..d79ab30e7 100644 --- a/test/functional/cases/120_fuzzy/redis-general.robot +++ b/test/functional/cases/120_fuzzy/redis-general.robot @@ -21,8 +21,10 @@ Fuzzy Overwrite *** Keywords *** Fuzzy Redis General Setup - Fuzzy Setup Generic siphash backend = "redis"; ${EMPTY} + ${tmpdir} = Make Temporary Directory + Set Suite Variable ${TMPDIR} ${tmpdir} Run Redis + Fuzzy Setup Generic siphash backend \= "redis"; ${EMPTY} TMPDIR=${TMPDIR} Fuzzy Redis General Teardown Normal Teardown |