Boot policy test execution changes

Fixes:
     - Remove power on and replace with smart power off.
     - Cosmetic changes to cleanup code.

This test suite is a boot setting test where we write and read it back.

Change-Id: I6f38dd01a20d7fe4f0f52c9752fded12b336c52a
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_boot_policies.robot b/tests/test_boot_policies.robot
index 6de1a41..3bb6f9a 100644
--- a/tests/test_boot_policies.robot
+++ b/tests/test_boot_policies.robot
@@ -73,14 +73,10 @@
     ...               and verify that the order doesn't change post power on.
     [Tags]  chassisboot  Test_Boot_Order_via_REST
 
-    Initiate Host PowerOff
 
     Set Boot Policy  ${PERMANENT}
-
     Set Boot Source  ${BOOT_SOURCE_CDROM}
 
-    Initiate Host Boot
-
     ${boot}=   Read Attribute  ${CONTROL_URI}/host0/boot/one_time  Enabled
     Should Be Equal  ${boot}  ${PERMANENT}
 
@@ -92,10 +88,7 @@
     ...               on warm reset.
     [Tags]  chassisboot   Persist_ONETIME_Boot_Policy_After_Reset
 
-    Initiate Host Boot
-
     Set Boot Policy  ${ONETIME}
-
     Set Boot Source  ${BOOT_SOURCE_NETWORK}
 
     OBMC Reboot (off)
@@ -111,10 +104,7 @@
     ...               on warm reset.
     [Tags]  chassisboot    Persist_PERMANENT_Boot_Policy_After_Reset
 
-    Initiate Host Boot
-
     Set Boot Policy  ${PERMANENT}
-
     Set Boot Source  ${BOOT_SOURCE_CDROM}
 
     OBMC Reboot (off)
@@ -139,8 +129,7 @@
     # Set bootmode to non default value.
     Set Boot Mode  ${BOOT_MODE_SAFE}
 
-    Initiate BMC Reboot
-    Wait Until Keyword Succeeds  10 min  10 sec  Is BMC Ready
+    OBMC Reboot (off)
 
     ${boot_mode_after}=  Read Attribute
     ...  ${CONTROL_HOST_URI}/boot  BootMode
@@ -186,7 +175,7 @@
 Suite Setup Execution
     [Documentation]  Do the initial suite setup.
 
-    REST Power On
+    Smart Power Off
 
 Restore Bootmode Setting
     [Documentation]  Restore initial bootmode setting.