Fix robot codes with latest directives
Changes:
- Run KeyWord If is deprecated since Robot
Framework version 5.*, use 'IF' instead
Tested:
- Checked using robot dry-run to make sure the
syntax is not broken
Change-Id: Ia7075ebf97e7300a82b032628e550d0caa4e86a8
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/lib/logging_utils.robot b/lib/logging_utils.robot
index 20e6901..c8d244d 100644
--- a/lib/logging_utils.robot
+++ b/lib/logging_utils.robot
@@ -185,15 +185,15 @@
# }
# }
- Run Keyword If '${pel_type}' == 'Internal Failure'
- ... BMC Execute Command ${CMD_INTERNAL_FAILURE}
- ... ELSE IF '${pel_type}' == 'FRU Callout'
- ... BMC Execute Command ${CMD_FRU_CALLOUT}
- ... ELSE IF '${pel_type}' == 'Procedure And Symbolic FRU Callout'
- ... BMC Execute Command ${CMD_PROCEDURAL_SYMBOLIC_FRU_CALLOUT}
- ... ELSE IF '${pel_type}' == 'Unrecoverable Error'
- ... BMC Execute Command ${CMD_UNRECOVERABLE_ERROR}
-
+ IF '${pel_type}' == 'Internal Failure'
+ BMC Execute Command ${CMD_INTERNAL_FAILURE}
+ ELSE IF '${pel_type}' == 'FRU Callout'
+ BMC Execute Command ${CMD_FRU_CALLOUT}
+ ELSE IF '${pel_type}' == 'Procedure And Symbolic FRU Callout'
+ BMC Execute Command ${CMD_PROCEDURAL_SYMBOLIC_FRU_CALLOUT}
+ ELSE IF '${pel_type}' == 'Unrecoverable Error'
+ BMC Execute Command ${CMD_UNRECOVERABLE_ERROR}
+ END
Create Test Error Log
[Documentation] Generate test error log.