diff options
Diffstat (limited to 'test/functional/lib/rspamd.robot')
-rw-r--r-- | test/functional/lib/rspamd.robot | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/lib/rspamd.robot b/test/functional/lib/rspamd.robot index 19359a038..84639c3e7 100644 --- a/test/functional/lib/rspamd.robot +++ b/test/functional/lib/rspamd.robot @@ -62,8 +62,11 @@ Generic Setup \ ... ELSE Fail 'RSPAMD_SCOPE must be Test or Suite' Generic Teardown + [Arguments] @{ports} Shutdown Process With Children ${RSPAMD_PID} Cleanup Temporary Directory ${TMPDIR} + : FOR ${i} IN @{ports} + \ Wait For Port @{i}[0] @{i}[1] @{i}[2] Log Logs [Arguments] ${logfile} ${position} @@ -71,6 +74,12 @@ Log Logs Log ${the_log} [Return] ${position} +Normal Teardown + ${port_normal} = Create List ${SOCK_STREAM} ${LOCAL_ADDR} ${PORT_NORMAL} + ${port_controller} = Create List ${SOCK_STREAM} ${LOCAL_ADDR} ${PORT_CONTROLLER} + ${ports} = Create List ${port_normal} ${port_controller} + Generic Teardown @{ports} + Redis HSET [Arguments] ${hash} ${key} ${value} ${result} = Run Process redis-cli -h ${REDIS_ADDR} -p ${REDIS_PORT} @@ -129,6 +138,11 @@ Scan Message With Rspamc ${result} = Run Rspamc -p -h ${LOCAL_ADDR}:${PORT_NORMAL} @{vargs} ${msg_file} [Return] ${result} +Simple Teardown + ${port_normal} = Create List ${SOCK_STREAM} ${LOCAL_ADDR} ${PORT_NORMAL} + ${ports} = Create List ${port_normal} + Generic Teardown @{ports} + Sync Fuzzy Storage [Arguments] @{vargs} ${len} = Get Length ${vargs} |