Fix for failing test case - Set valid system time.

What is the fix:
    - Need to set time owner to HOST and time mode
      to MANUAL before setting time using IPMI.

Resolves openbmc/openbmc-test-automation#495

Change-Id: I019b88a2e7a31725d071975e064effe052169d85
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/tests/test_time.robot b/tests/test_time.robot
index cb98cb9..0fd88e8 100644
--- a/tests/test_time.robot
+++ b/tests/test_time.robot
@@ -41,6 +41,9 @@
     ...              correctly set in BMC.
     [Tags]  Set_Valid_System_Time
 
+    Set Time Owner  HOST
+    Set Time Mode  MANUAL
+
     ${resp}=  Run IPMI Standard Command  sel time set "${SYSTEM_TIME_VALID}"
     ${setdate}=  Convert Date  ${SYSTEM_TIME_VALID}
     ...  date_format=%m/%d/%Y %H:%M:%S  exclude_millis=yes
@@ -55,6 +58,9 @@
     ...              that it should throw error.
     [Tags]  Set_Invalid_System_Time
 
+    Set Time Owner  HOST
+    Set Time Mode  MANUAL
+
     ${msg}=  Run Keyword And Expect Error  *  Run IPMI Standard Command
     ...  sel time set "${SYSTEM_TIME_INVALID}"
     Should Start With  ${msg}  Specified time could not be parsed
@@ -64,6 +70,9 @@
     ...              that it should throw error.
     [Tags]  Set_System_Time_with_no_time
 
+    Set Time Owner  HOST
+    Set Time Mode  MANUAL
+
     ${msg}=  Run Keyword And Expect Error  *  Run IPMI Standard Command
     ...  sel time set ""
     Should Start With  ${msg}  Specified time could not be parsed