robotframework / robotframework/robotframework
Run Keyword and Ignore Error doesn't handle logging w/ --exitonerror
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 11.9k
- Forks
- 2.6k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 10
Description
Looks like Run keyword and ignore error does not shield from the ERROR log messages, and tests still fail with --exitonerror flag on. Shouldn't it ignore the logs too?
Repro code:
# kw.py
import logging
def mykw(msg):
logging.error(msg)
*** Settings ***
Library kw.py
*** Test Case ***
Test
Run Keyword and ignore error mykw error msg
Test2
Log to Console This should not fail
Run with: robot --exitonerror test.robot
Log:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproducer in kw.py and test.robot, then run robot --exitonerror test.robot to confirm the failure. Trace how Run Keyword and Ignore Error handles the ERROR log from mykw; done means the logged error is ignored and Test2 still runs without failing the suite.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100