Wait for boot progress till required state

Changes:
   - Added keyword
     Wait For Boot Progress To Reach Required State.

Tested:
   - Ran successfully
     Wait For Boot Progress To Reach Required State.

Change-Id: I3f3bf524b5eaeaad24813bfa49d9fb688152d42e
Signed-off-by: praphullasuresh <Praphulla.S@ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index b657c4a..f77677c 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -1004,6 +1004,17 @@
     Dictionaries Should Be Equal  ${match_state}  ${current_state}
 
 
+Wait For Host Boot Progress To Reach Required State
+    [Documentation]  Wait till host boot progress reaches required state.
+    [Arguments]      ${expected_boot_state}
+
+    # Description of argument(s):
+    # expected_boot_state    Expected boot state. E.g. OSRunning, SystemInitComplete etc.
+
+    Wait Until Keyword Succeeds  ${power_on_timeout}  20 sec
+    ...  Is Boot Progress At Required State  ${expected_boot_state}
+
+
 Redfish Initiate Auto Reboot
     [Documentation]  Initiate an auto reboot.
     [Arguments]  ${interval}=2000