diff options
author | Andrew Lewis <nerf@judo.za.org> | 2023-10-30 09:50:02 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2023-10-30 09:50:02 +0200 |
commit | 7bfc88c4b545ea1dd0c211a2140eabad036c8c71 (patch) | |
tree | 54e82d039f31c4e9ba193c956b79440cbe2e5451 /test | |
parent | e23c0d3836e8e70b69cabe38ad5eb18739faea61 (diff) | |
download | rspamd-7bfc88c4b545ea1dd0c211a2140eabad036c8c71.tar.gz rspamd-7bfc88c4b545ea1dd0c211a2140eabad036c8c71.zip |
[Minor] Make Robot Framework loop unfunny
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/lib/rspamd.robot | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/functional/lib/rspamd.robot b/test/functional/lib/rspamd.robot index 27dad96ee..696b5f97d 100644 --- a/test/functional/lib/rspamd.robot +++ b/test/functional/lib/rspamd.robot @@ -163,16 +163,20 @@ Export Rspamd Variables To Environment Export Scoped Variables [Arguments] ${scope} &{vars} - FOR ${k} ${v} IN &{vars} - IF '${scope}' == 'Test' + IF '${scope}' == 'Test' + FOR ${k} ${v} IN &{vars} Set Test Variable ${${k}} ${v} - ELSE IF '${scope}' == 'Suite' + END + ELSE IF '${scope}' == 'Suite' + FOR ${k} ${v} IN &{vars} Set Suite Variable ${${k}} ${v} - ELSE IF '${scope}' == 'Global' + END + ELSE IF '${scope}' == 'Global' + FOR ${k} ${v} IN &{vars} Set Global Variable ${${k}} ${v} - ELSE - Fail message="Don't know what to do with scope: ${scope}" END + ELSE + Fail message="Don't know what to do with scope: ${scope}" END Log does not contain segfault record |