Test to verify journald data when BMC is running

Changes:
    - Test to boot host and verify the syslog data.
    - Add parameter to journald utility keyword to accept filters.

Change-Id: Ic6e1e2249b96fbe8d158d0ed7e0415aea8c9461f
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 53072d5..05898f4 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -754,15 +754,16 @@
     ...               journalctl command. By default journal log is collected
     ...               at /tmp/journal_log else user input location.
     ...               The File is appended with datetime.
-    [Arguments]       ${file_path}=/tmp/journal_log
+    [Arguments]       ${file_path}=/tmp/journal_log  ${filter}=${EMPTY}
 
     # Description of arguments:
     # file_path   The file path of the journal file.
 
     ${cur_time}=    Get Time Stamp
     Set Global Variable   ${LOG_TIME}   ${cur_time}
+    Open Connection And Log In
     Start Command
-    ...  journalctl -f > ${file_path}-${LOG_TIME}
+    ...  journalctl -f ${filter} > ${file_path}-${LOG_TIME}
     Log    Journal Log Started: ${file_path}-${LOG_TIME}
 
 
@@ -779,7 +780,7 @@
 
     ${rc}=
     ...  Execute Command
-    ...  ps ax | grep journalctl | grep -v grep
+    ...  ps | grep journalctl | grep -v grep
     ...  return_stdout=False  return_rc=True
 
     Return From Keyword If   '${rc}' == '${1}'