Power on test fix
Fixes:
- Add new keyword "Is OS Off"
- User can pass the number of cycles to run. By default
2 cycle for CI/CT
- Add host boot progress check
Resolves openbmc/openbmc-test-automation#414
Change-Id: I9abcc873acf7afd3ed92067deb53d4058bd9b2b1
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 9951c49..dd1e061 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -336,6 +336,11 @@
${boot_progress}= Get Boot Progress
Should Be Equal ${boot_progress} FW Progress, Starting OS
+Is OS Off
+ [Documentation] Check if boot progress is "Off".
+ ${boot_progress}= Get Boot Progress
+ Should Be Equal ${boot_progress} Off
+
Verify Ping and REST Authentication
${l_ping}= Run Keyword And Return Status
... Ping Host ${OPENBMC_HOST}