Moved 'Delete Error logs' to utils.robot for general use.
- Moved 'Delete Error logs' from test_error_log.robot to utils.robot
to allow for general use.
Change-Id: I4ec691aa1164e513ddf5686a54381bea288a32ad
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index b8d05ed..c044ac3 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -875,3 +875,14 @@
# Set BOOT_TIME variable to current boot time.
Set Global Variable ${BOOT_COUNT} ${count}
+
+###############################################################################
+Delete Error logs
+ [Documentation] Delete error logs.
+
+ # The REST method to delete error openbmc/openbmc#1327
+ # until then using logging restart.
+ Open Connection And Log In
+ Execute Command On BMC
+ ... systemctl restart xyz.openbmc_project.Logging.service
+ Sleep 10s reason=Wait for logging service to restart properly.
diff --git a/tests/test_error_log.robot b/tests/test_error_log.robot
index 985398c..6c657f5 100644
--- a/tests/test_error_log.robot
+++ b/tests/test_error_log.robot
@@ -163,11 +163,3 @@
Should Be Equal ${content}
... xyz.openbmc_project.Logging.Entry.Level.Error
-Delete Error logs
- [Documentation] Delete error logs.
-
- # The REST method to delete error openbmc/openbmc#1327
- # until then using logging restart.
- Execute Command On BMC
- ... systemctl restart xyz.openbmc_project.Logging.service
- Sleep 10s reason=Wait for logging service to restart properly.