Skip to content

Commit

Permalink
Merge pull request #4672 from fatalbanana/robot_export_vars
Browse files Browse the repository at this point in the history
[Minor] Make Robot Framework loop unfunny
  • Loading branch information
vstakhov committed Oct 30, 2023
2 parents e23c0d3 + 7bfc88c commit db51a5e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions test/functional/lib/rspamd.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db51a5e

Please sign in to comment.