Reset/reload when host is booted in loop.
Changes:
- Added test to perform reset/reload in loop.
- Check for OCC active state post reset.
- Check for errors from journald log.
- Keyword to scrub journald log.
Resolves openbmc/openbmc-test-automation#1256
Change-Id: I2fc4c1dcdfef1d5087e0ef44854631afd331f950
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 081d4b9..0b08f7e 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -1472,3 +1472,13 @@
Should Contain Match ${ip_data} ${ip_address}/*
... msg=${ip_address} not found in the list provided.
+
+
+Remove Journald Logs
+ [Documentation] Remove all journald logs and restart service.
+
+ ${cmd}= Catenate systemctl stop systemd-journald.service &&
+ ... rm -rf /var/log/journal && systemctl start systemd-journald.service
+
+ BMC Execute Command ${cmd}
+