Fix for deprecated Exit For Loop keyword
Changes:
- Exit For Loop If is deprecated since
Robot Framework version 5.*, use IF and BREAK instead
Tested:
- Checked using robot dry-run to make sure the
syntax is not broken
Change-Id: Ib12fecbc996ba14f4cabd7677f85a90fa3f2b39b
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 1fc75a6..b082ae3 100644
--- a/redfish/systems/eventlog/test_event_logging.robot
+++ b/redfish/systems/eventlog/test_event_logging.robot
@@ -448,7 +448,7 @@
FOR ${entry} IN @{elog_list}
${found_match}= Run Keyword And Return Status Is Watchdog Error Found ${entry}
- Exit For Loop If '${found_match}' == 'True'
+ IF '${found_match}' == 'True' BREAK
END
Run Keyword If '${found_match}' == 'False' Fail msg=No watchdog error logged.