Update power restore logic to validate end state of the test.
Fixes:
- Refer valid state from mapping table(lib/state_map.py)
to validate the valid boot state.
Change-Id: I9a0859c2ceea9ccceb58de4a00224fceb8adbcc6
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_power_restore.robot b/tests/test_power_restore.robot
index ed14153..f9479f6 100644
--- a/tests/test_power_restore.robot
+++ b/tests/test_power_restore.robot
@@ -123,12 +123,10 @@
Set Initial Test State ${expectedState}
- ${initial_states}= Get Boot State
-
Initiate BMC Reboot
Wait Until Keyword Succeeds
- ... 10 min 10 sec Valid Boot States ${initial_states}
+ ... 10 min 10 sec Valid Boot States ${nextState}
Valid Boot States
@@ -137,10 +135,10 @@
# Description of argument(s):
# sys_state system state list
- # (e.g.bmc,chassis,host,BootProgress,OperatingSystemState).
+ # (e.g. "Off", "On", "Reboot", etc.).
${current_state}= Get Boot State
- Lists Should Be Equal ${sys_state} ${current_state}
+ Valid Boot State ${sys_state} ${current_state}
Set Initial Test State