Set the Power off policy to boot sanely to BMC_READY
BMC poweron due to poweron policy set to HOST_BOOTED. This is a use case
where update expects to reboot while doing Preparing for update and expects
BMC to come online and stay at BMC_READY or Poweroff state.
As part of the code update, we poweroff the BMC and then set Host Power host
setting Policy to RESTORE_LAST_STATE. On reboot this policy would ensure
the BMC comes online and host setting power state stays poweroff.
Resolves openbmc/openbmc-test-automation#182
Change-Id: I689affa6f9e059809ea175ccc3363c4315022d65
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 4f0acca..229b858 100644
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -306,5 +306,5 @@
[Arguments] ${expected}
${current}= Get BMC State
- Should Contain ${current} ${expected}
+ Should Contain ${expected} ${current}