Amend BIOS firmware boot side keyword
Changes:
- Tweak code to handle side switch based on the user input
and current system BIOS value set.
Tested: - Tested in the sandbox using sample test code
Change-Id: I055ea962717b9688b894b589a3f8556e9994f88b
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/bios_attr_utils.robot b/lib/bios_attr_utils.robot
index a76582a..b16ce7c 100644
--- a/lib/bios_attr_utils.robot
+++ b/lib/bios_attr_utils.robot
@@ -75,16 +75,17 @@
# Get pre reboot state.
${pre_reboot_state}= Get Pre Reboot State
- # Get fw_boot_side value, make sure given set_fw_boot_side and
+ # Get fw_boot_side value.
# fw_boot_side values are not same.
${cur_boot_side}= Redfish.Get Attribute ${BIOS_ATTR_URI} Attributes
- Should Not Be Equal ${cur_boot_side["fw_boot_side_current"]} ${set_fw_boot_side}
- ... msg=Current firmware boot side & the given firmware boot side are same...
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}
+
# Set the given firmware boot side value.
Set BIOS Attribute Value And Verify fw_boot_side ${set_fw_boot_side} False