Added a keyword to check "quiesced state".
Resolves openbmc/openbmc-test-automation#322
Change-Id: I2b83aece68da083e625a0473087df3fa7c783d48
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/lib/state_manager.robot b/lib/state_manager.robot
index 8177f63..9372c15 100755
--- a/lib/state_manager.robot
+++ b/lib/state_manager.robot
@@ -48,6 +48,14 @@
${host_state}= Get Host State
Should Be Equal Off ${host_state}
+Is Host Quiesced
+ [Documentation] Check if host state is quiesced.
+ ${host_state}= Get Host State
+ Should Be Equal Quiesced ${host_state}
+ ${status}= Run Keyword And Return Status Should Be Equal
+ ... ${host_state} Quiesced
+ [Return] ${status}
+
Get Host State
[Documentation] Return the state of the host as a string.