Show run_key error even when ignore=1.
Just because we are not failing on an error doesn't mean we should hide
the error message.
Change-Id: I6426913bdbeb325996dadf9eda4c078c39ac5b8a
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/gen_robot_keyword.py b/lib/gen_robot_keyword.py
index 44aa1d1..91a5f0c 100755
--- a/lib/gen_robot_keyword.py
+++ b/lib/gen_robot_keyword.py
@@ -73,11 +73,12 @@
status = "FAIL"
ret_values = my_assertion_error.args[0]
- if not (status == 'PASS' or ignore):
+ if status != 'PASS':
# Output the error message to stderr.
BuiltIn().log_to_console(ret_values, stream='STDERR')
- # Fail with the given error message.
- BuiltIn().fail(ret_values)
+ if not ignore:
+ # Fail with the given error message.
+ BuiltIn().fail(ret_values)
return status, ret_values