Fix for depreciated Return From Keyword If keyword
Changes:
- Return From Keyword If is deprecated since
Robot Framework version 5.*, use IF and RETURN instead
Tested:
- Checked using robot dry-run to make sure the
syntax is not broken
Change-Id: I458528b33a1abe9fc750a6941e98490db9b36094
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/lib/bios_attr_utils.robot b/lib/bios_attr_utils.robot
index b485da4..f9e68a0 100644
--- a/lib/bios_attr_utils.robot
+++ b/lib/bios_attr_utils.robot
@@ -106,8 +106,9 @@
Log To Console Current firmware boot side :: ${cur_boot_side["fw_boot_side"]}
Log To Console Given firmware boot side :: ${set_fw_boot_side}
- Return From Keyword If "${cur_boot_side["fw_boot_side_current"]}" == "${set_fw_boot_side}"
- ... ${True}
+ IF "${cur_boot_side["fw_boot_side_current"]}" == "${set_fw_boot_side}"
+ RETURN ${True}
+ END
# Set the given firmware boot side value.
Set BIOS Attribute Value And Verify fw_boot_side ${set_fw_boot_side} False