Update test manager suite code logic

Changes:
     - Update file checking using test linux utility
     - Add wait loop for OCC

Tested:
     Ran successfully redfish/managers/test_managers_bmc.robot

Change-Id: Ie64d81f15b773cca87979b2306379230a96762b1
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/managers/test_managers_bmc.robot b/redfish/managers/test_managers_bmc.robot
index c467966..3a9b3a1 100644
--- a/redfish/managers/test_managers_bmc.robot
+++ b/redfish/managers/test_managers_bmc.robot
@@ -121,7 +121,7 @@
 
     Is BMC Standby
 
-    BMC Execute Command  if [ -f ${test_file_path} ] ; then false ; fi
+    ${stdout}  ${stderr}  ${rc}=  BMC Execute Command  test ! -f ${test_file_path}  print_out=1
     Verify BMC RTC And UTC Time Drift
 
     # Check for journald persistency post reboot.
@@ -151,7 +151,7 @@
 
     Is BMC Standby
 
-    BMC Execute Command  if [ -f ${test_file_path} ] ; then false ; fi
+    ${stdout}  ${stderr}  ${rc}=  BMC Execute Command  test ! -f ${test_file_path}  print_out=1
     Verify BMC RTC And UTC Time Drift
 
     # Check for journald persistency post reboot.
@@ -176,7 +176,7 @@
     Redfish OBMC Reboot (run)
 
     # TODO: Replace OCC state check with redfish property when available.
-    Verify OCC State
+    Wait Until Keyword Succeeds  10 min  30 sec  Verify OCC State
 
 
 *** Keywords ***