BGP application peer performance suite
[integration/test.git] / csit / libraries / KarafKeywords.robot
index 303213b9c28d3cea127cf09a2b5e3d24cfae5069..fb0771c65e52a72531a04041f6c88e277e62cd87 100644 (file)
@@ -14,8 +14,8 @@ Check Karaf Log File Does Not Have Messages
     [Arguments]    ${ip}    ${message}    ${user}=${CONTROLLER_USER}    ${password}=${CONTROLLER_PASSWORD}    ${prompt}=${DEFAULT_LINUX_PROMPT}    ${log_file}=${WORKSPACE}/${BUNDLEFOLDER}/data/log/karaf.log
     [Documentation]    Fails if the provided ${message} is found in the karaf.log file. Uses grep to search. The
     ...    karaf.log file can be overridden with ${log_file} to be any file on the given system @ ${ip}
-    ${output}=    Run Command On Controller    ${ip}    grep ${message} ${log_file}    user=${user}    password=${password}    prompt=${prompt}
-    Should Not Contain    ${output}    ${message}
+    ${output}=    Run Command On Controller    ${ip}    grep -c ${message} ${log_file}    user=${user}    password=${password}    prompt=${prompt}
+    Should_Be_Equal_As_Strings    ${output}    0
 
 Verify Feature Is Installed
     [Arguments]    ${feature_name}    ${controller}=${CONTROLLER}    ${karaf_port}=${KARAF_SHELL_PORT}