Skip to content

Commit

Permalink
Add WHILE on_limit to listener v2 attributes.
Browse files Browse the repository at this point in the history
Fixes #4924.
  • Loading branch information
pekkaklarck committed Nov 2, 2023
1 parent 42ffe99 commit 47afd74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ it. If that is needed, `listener version 3`_ can be used instead.
| | | * `condition`: The looping condition. |
| | | * `limit`: The maximum iteration limit. |
| | | * `on_limit`: What to do if the limit is exceeded. |
| | | Valid values are `pass` and `fail`. New in RF 6.1. |
| | | Valid values are `pass` and `fail`. New in RF 7.0. |
| | | * `on_limit_message`: The custom error raised when the |
| | | limit of the WHILE loop is reached. New in RF 6.1. |
| | | |
Expand Down
4 changes: 2 additions & 2 deletions src/robot/output/listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,13 @@ def end_for_iteration(self, data, result):

def start_while(self, data, result):
attrs = self._attrs(data, result, condition=result.condition,
limit=result.limit,
limit=result.limit, on_limit=result.on_limit,
on_limit_message=result.on_limit_message)
self._start_kw(result._log_name, attrs)

def end_while(self, data, result):
attrs = self._attrs(data, result, condition=result.condition,
limit=result.limit,
limit=result.limit, on_limit=result.on_limit,
on_limit_message=result.on_limit_message, end=True)
self._end_kw(result._log_name, attrs)

Expand Down

0 comments on commit 47afd74

Please sign in to comment.