Add skip error option for journald log checking
Usage:
Single string pattern option usage:
-v SKIP_ERROR:'core-dump'
Multiple string pattern "\|" separated option usage:
-v SKIP_ERROR:'core-dump/Failed to start OpenPOWER OCC'
Change-Id: If79827cd2ff84c50512b57e090d3a93a90a80b9e
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/extended/test_basic_ci.robot b/redfish/extended/test_basic_ci.robot
index 10a7c2e..f976e1f 100644
--- a/redfish/extended/test_basic_ci.robot
+++ b/redfish/extended/test_basic_ci.robot
@@ -18,6 +18,8 @@
${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start
${STANDBY_REGEX} Startup finished in
+${SKIP_ERROR} ${EMPTY}
+
# 3 minutes standby boot time.
${startup_time_threshold} 180
@@ -58,7 +60,7 @@
[Documentation] Parse the journal log and check for failures.
[Tags] Check_For_Application_Failures
- Check For Regex In Journald ${ERROR_REGEX} error_check=${0} boot=-b
+ Check For Regex In Journald ${ERROR_REGEX} error_check=${0} boot=-b filter_string=${SKIP_ERROR}
Verify Uptime Average Against Threshold