Fixed 'REST Power Off' failure loop.

If a user calls 'REST Power On' with the system in a powered on state,
obmc boot test will first do a 'REST Power Off' to transition to valid
state to do the 'REST Power On'.  Previously, if the 'REST Power Off'
fails, obmc boot test, would try another and another ad infinitum.

This change has obmc boot test popping the stack if the transitional
boot fails.

This new message will be generated in this scenario:

The prior 'REST Power Off' was chosen to transition to a valid state
for 'REST Power On' which was at the top of the boot_stack.  Since
the 'REST Power Off' failed, the 'REST Power On' has been removed
from the stack to avoid and endless failure loop.

Change-Id: I336caa2755dc3195d8e97a6aa38a843787ea1955
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
1 file changed