diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-07-21 12:19:26 +0100 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-07-21 12:19:58 +0100 |
commit | 23488b177f00e212e4f5e86dca1fb59c1f8a1c37 (patch) | |
tree | ec063ab53bd040d9fb897eaa3669068863697d04 /test | |
parent | 7f61d936e15ac3de067ba2475981c99f31227733 (diff) | |
download | rspamd-23488b177f00e212e4f5e86dca1fb59c1f8a1c37.tar.gz rspamd-23488b177f00e212e4f5e86dca1fb59c1f8a1c37.zip |
[Test] Fix race conditions in functional tests
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/lib/rspamd.robot | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/lib/rspamd.robot b/test/functional/lib/rspamd.robot index 7bba2706c..35cf66648 100644 --- a/test/functional/lib/rspamd.robot +++ b/test/functional/lib/rspamd.robot @@ -79,6 +79,7 @@ Run Redis ${result} = Run Process redis-server ${TMPDIR}/redis-server.conf Run Keyword If ${result.rc} != 0 Log ${result.stderr} Should Be Equal As Integers ${result.rc} 0 + Wait Until Created ${TMPDIR}/redis.pid ${REDIS_PID} = Get File ${TMPDIR}/redis.pid Run Keyword If '${REDIS_SCOPE}' == 'Test' Set Test Variable ${REDIS_PID} ... ELSE IF '${REDIS_SCOPE}' == 'Suite' Set Suite Variable ${REDIS_PID} @@ -109,6 +110,7 @@ Run Rspamd Run Keyword If ${result.rc} != 0 Log ${result.stderr} ${rspamd_logpos} = Log Logs ${TMPDIR}/rspamd.log 0 Should Be Equal As Integers ${result.rc} 0 + Wait Until Created ${TMPDIR}/rspamd.pid ${rspamd_pid} = Get File ${TMPDIR}/rspamd.pid [Return] ${TMPDIR} ${rspamd_pid} ${rspamd_logpos} |