BIOS: Create API to set fw_boot_side value.
Changes:
-- Added three new keywords as mentioned below.
- Switch BIOS Attribute Firmware Boot Side
- Is Boot Progress At Any State
- Is Boot Progress At Required State
Tested:
Created a unit testcase and verified on BMC environment.
Change-Id: I37cb070fb1269c5d90cc1cbe3906f04262a2334d
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index e763c5e..43c5a2e 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -38,6 +38,7 @@
${boot_prog_method} ${EMPTY}
${power_policy_setup} ${0}
${bmc_power_policy_method} ${EMPTY}
+@{BOOT_PROGRESS_STATES} SystemHardwareInitializationComplete OSBootStarted OSRunning
*** Keywords ***
@@ -1024,6 +1025,30 @@
Should Not Be Equal ${boot_progress} ${boot_state}
+Is Boot Progress At Required State
+ [Documentation] Get BootProgress state and expect boot state to match.
+ [Arguments] ${boot_state}=None
+
+ # Description of argument(s):
+ # boot_state Value of the BootProgress state to match.
+
+ ${boot_progress} ${host_state}= Redfish Get Boot Progress
+
+ Should Be Equal ${boot_progress} ${boot_state}
+
+
+Is Boot Progress At Any State
+ [Documentation] Get BootProgress state and expect boot state to match
+ ... with any of the states mentioned in the list.
+ [Arguments] ${boot_states}=@{BOOT_PROGRESS_STATES}
+
+ # Description of argument(s):
+ # boot_states List of the BootProgress states to match.
+
+ ${boot_progress} ${host_state}= Redfish Get Boot Progress
+ Should Contain Any ${boot_progress} @{boot_states}
+
+
Set Watchdog Interval Using Busctl
[Documentation] Set Watchdog time interval.
[Arguments] ${milliseconds}=1000