Setting stack mode as skip to avoid the reboot of the system.

Resolves openbmc/openbmc-test-automation#752

Change-Id: I98b31b7fe5046fb325fbc2223e225af4966b9a2f
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/extended/test_esel.robot b/extended/test_esel.robot
index 2857927..3ba3c1e 100644
--- a/extended/test_esel.robot
+++ b/extended/test_esel.robot
@@ -18,6 +18,7 @@
 
 *** Variables ***
 
+${stack_mode}       skip
 ${RESERVE_ID}       raw 0x0a 0x42
 ${RAW_PREFIX}       raw 0x32 0xf0 0x
 
diff --git a/tests/test_boot_devices.robot b/tests/test_boot_devices.robot
index 3a4e984..bbe203f 100644
--- a/tests/test_boot_devices.robot
+++ b/tests/test_boot_devices.robot
@@ -6,6 +6,7 @@
 Resource        ../lib/ipmi_client.robot
 Resource        ../lib/openbmc_ffdc.robot
 Resource        ../lib/utils.robot
+Resource        ../lib/boot_utils.robot
 
 Suite Setup     Test Suite Setup
 Test Setup      Pre Test Case Execution
@@ -14,6 +15,7 @@
 
 *** Variables ***
 
+${stack_mode}     skip
 ${HOST_SETTINGS}  ${SETTINGS_URI}host0
 
 *** Test Cases ***
@@ -194,11 +196,5 @@
 Test Suite Setup
     [Documentation]  Do the initial suite setup.
 
-    # Reboot host to re-power on clean if host is not "off".
-    ${current_state}=  Get Host State
-    Run Keyword If  '${current_state}' == 'Off'
-    ...  Initiate Host Boot
-    ...  ELSE  Initiate Host Reboot
-
-    Wait Until Keyword Succeeds
-    ...  10 min  10 sec  Is OS Starting
+    # Boot Host.
+    REST Power On
diff --git a/tests/test_boot_policies.robot b/tests/test_boot_policies.robot
index 49c5862..0c2e572 100644
--- a/tests/test_boot_policies.robot
+++ b/tests/test_boot_policies.robot
@@ -7,6 +7,7 @@
 Resource           ../lib/utils.robot
 Resource           ../lib/openbmc_ffdc.robot
 Resource           ../lib/state_manager.robot
+Resource           ../lib/boot_utils.robot
 
 Suite Setup        Test Suite Setup
 Test Setup         Test Init Setup
@@ -16,6 +17,7 @@
 Force Tags  boot_policy_test
 
 *** Variables ***
+${stack_mode}       skip
 ${HOST_SETTINGS}    ${SETTINGS_URI}host0
 
 *** Test Cases ***
@@ -194,14 +196,8 @@
 Test Suite Setup
     [Documentation]  Do the initial suite setup.
 
-    # Reboot host to re-power on clean if host is not "off".
-    ${current_state}=  Get Host State
-    Run Keyword If  '${current_state}' == 'Off'
-    ...  Initiate Host Boot
-    ...  ELSE  Initiate Host Reboot
-
-    Wait Until Keyword Succeeds
-    ...  10 min  10 sec  Is OS Starting
+    #Boot Host.
+    REST Power On
 
 Restore Bootmode Setting
     [Documentation]  Restore initial bootmode setting.
diff --git a/tests/test_inventory.robot b/tests/test_inventory.robot
index a1799aa..0fb5f76 100644
--- a/tests/test_inventory.robot
+++ b/tests/test_inventory.robot
@@ -6,6 +6,7 @@
 Resource          ../lib/state_manager.robot
 Resource          ../lib/openbmc_ffdc.robot
 Resource          ../lib/list_utils.robot
+Resource          ../lib/boot_utils.robot
 Library           ../lib/utilities.py
 
 Variables         ../data/variables.py
@@ -18,6 +19,7 @@
 
 ***Variables***
 
+${stack_mode}  skip
 ${LOOP_COUNT}  ${1}
 
 *** Test Cases ***
@@ -362,14 +364,8 @@
 Test Suite Setup
     [Documentation]  Do the initial suite setup.
 
-    # Reboot host to re-power on clean if host is not "off".
-    ${current_state}=  Get Host State
-    Run Keyword If  '${current_state}' == 'Off'
-    ...  Initiate Host Boot
-    ...  ELSE  Initiate Host Reboot
-
-    Wait Until Keyword Succeeds
-    ...  10 min  10 sec  Is OS Starting
+    # Boot Host.
+    REST Power On
 
 Get Inventory
     [Documentation]  Get the properties of an endpoint.
diff --git a/tests/test_sensors.robot b/tests/test_sensors.robot
index cae4816..cd3e779 100644
--- a/tests/test_sensors.robot
+++ b/tests/test_sensors.robot
@@ -10,13 +10,16 @@
 Resource               ../lib/openbmc_ffdc.robot
 Resource               ../lib/state_manager.robot
 Library                ../data/model.py
+Resource               ../lib/boot_utils.robot
 
 Suite Setup            Setup The Suite
 Test Setup             Open Connection And Log In
 Test Teardown          Post Test Case Execution
 
 *** Variables ***
-${model}=    ${OPENBMC_MODEL}
+
+${stack_mode}     skip
+${model}=         ${OPENBMC_MODEL}
 
 *** Test Cases ***
 Verify connection
@@ -228,14 +231,8 @@
 Setup The Suite
     [Documentation]  Do the initial suite setup.
 
-    # Reboot host to re-power on clean if host is not "off".
-    ${current_state}=  Get Host State
-    Run Keyword If  '${current_state}' == 'Off'
-    ...  Initiate Host Boot
-    ...  ELSE  Initiate Host Reboot
-
-    Wait Until Keyword Succeeds
-    ...  10 min  10 sec  Is OS Starting
+    # Boot Host.
+    REST Power On
 
     Open Connection And Log In
     ${resp}=   Read Properties   ${OPENBMC_BASE_URI}enumerate   timeout=30