Check for curent boot journald log
Change-Id: I359d625010c13d5c9bb685dcffecf023edc96dfa
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 053e8ea..c7e220d 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -1539,10 +1539,16 @@
Check For Regex In Journald
[Documentation] Parse the journal log and check for regex string.
- [Arguments] ${regex}=${ERROR_REGEX} ${error_check}=${0}
+ [Arguments] ${regex}=${ERROR_REGEX} ${error_check}=${0} ${boot}=${EMPTY}
+
+ # Description of argument(s):
+ # regex Strings to be filter.
+ # error_check Check for errors.
+ # boot Argument to check current or persistent full boot log
+ # (e.g. "-b").
${journal_log} ${stderr} ${rc}= BMC Execute Command
- ... journalctl --no-pager | egrep '${regex}' ignore_err=1
+ ... journalctl --no-pager ${boot} | egrep '${regex}' ignore_err=1
Run Keyword If ${error_check} == ${0}
... Should Be Empty ${journal_log}
diff --git a/tests/test_basic_poweron.robot b/tests/test_basic_poweron.robot
index 2abdbb3..09ca74b 100644
--- a/tests/test_basic_poweron.robot
+++ b/tests/test_basic_poweron.robot
@@ -91,7 +91,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}
+ Check For Regex In Journald ${ERROR_REGEX} error_check=${0} boot=-b
Verify Uptime Average Against Threshold