Fix deprecrated Run Keyword If for systems
Changes:
- Run Keyword If is deprecated since
Robot Framework version 5.*, use IF and END or Inline IF
Tested:
- Checked using robot dry-run to make sure the
syntax is not broken
Change-Id: I9bd9ba2706772fb288c62fa43016eaa343fc7324
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/redfish/systems/eventlog/test_event_logging.robot b/redfish/systems/eventlog/test_event_logging.robot
index b082ae3..87f82c2 100644
--- a/redfish/systems/eventlog/test_event_logging.robot
+++ b/redfish/systems/eventlog/test_event_logging.robot
@@ -301,9 +301,9 @@
${elogs}= Get Event Logs
${count}= Get Length ${elogs}
- Run Keyword If ${count} > 200
- ... Fail Error logs created exceeded max capacity 200.
-
+ IF ${count} > 200
+ Fail Error logs created exceeded max capacity 200.
+ END
Test Event Log Wrapping
[Documentation] Verify event log entries wraps when 200 max cap is reached.
@@ -373,7 +373,7 @@
Redfish Purge Event Log
${status}= Run Keyword And Return Status Logging Test Binary Exist
- Run Keyword If ${status} == ${False} Install Tarball
+ IF ${status} == ${False} Install Tarball
Suite Teardown Execution
@@ -388,7 +388,7 @@
Redfish Purge Event Log
${status}= Run Keyword And Return Status Logging Test Binary Exist
- Run Keyword If ${status} == ${False} Install Tarball
+ IF ${status} == ${False} Install Tarball
Test Teardown Execution
@@ -451,7 +451,7 @@
IF '${found_match}' == 'True' BREAK
END
- Run Keyword If '${found_match}' == 'False' Fail msg=No watchdog error logged.
+ IF '${found_match}' == 'False' Fail msg=No watchdog error logged.
Is Watchdog Error Found