Reboot OS test

Boot OS and trigger "reboot" from OS and expect OS to boot back.

Resolves  openbmc/openbmc-test-automation#610

Change-Id: Ic9e1d3dfc63c86a75ce2bcb38aa2d692b5f7b7bc
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/extended/test_os_reboot.robot b/extended/test_os_reboot.robot
new file mode 100644
index 0000000..532c29f
--- /dev/null
+++ b/extended/test_os_reboot.robot
@@ -0,0 +1,31 @@
+*** Settings ***
+Documentation   Module to test OS reboot functionality.
+
+Resource    ../lib/boot_utils.robot
+
+Test Teardown   FFDC On Test Case Fail
+
+*** Variables ***
+
+# User defined boot test iteration.
+${BOOT_LOOP_COUNT}   ${50}
+
+*** Test Cases ***
+
+Host Reboot Loop
+    [Documentation]  Boot OS and trigger reboot and expect
+    ...              OS to boot back.
+    # 1. Boot OS
+    # 2. Verify OS is booted
+    # 3. Issue "reboot" from OS
+    # 4. Verify if OS is booted back
+
+    # By default run test for 50 loops, else user input iteration.
+    # Fails immediately if any of the execution rounds fail.
+
+    # Note: Host Reboot is implemented by the OBMC Boot Test tool.
+    # OBMC Boot Test will take the necessary steps to get the OBMC
+    # to a host powered on state before attempting the Host Reboot.
+    Repeat Keyword  ${BOOT_LOOP_COUNT} times  Host Reboot
+
+*** Keywords ***