X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=tests%2Fos%2Flynis%2Flynis.robot;h=de05d8df3ec4044f6e875829d0fcc46262d84ba8;hb=b6ade8b653a44400a6c509a726e23c98317e40ab;hp=8d0069a9bc90a29b82f03b2189d13c1049b0cf68;hpb=e0b8cb1700cc9ba3e46f8ea285007ae21b3c8a13;p=validation.git diff --git a/tests/os/lynis/lynis.robot b/tests/os/lynis/lynis.robot index 8d0069a..de05d8d 100644 --- a/tests/os/lynis/lynis.robot +++ b/tests/os/lynis/lynis.robot @@ -40,6 +40,9 @@ Run Lynis Audit System Append To File ${log} ${stdout}${\n} Should Be Equal As Integers ${rc} 0 + ${status} = Evaluate "Great, no warnings" in """${stdout}""" + Run Keyword If '${status}' == 'False' FAIL Warnings discovered + ... non-critical *** Keywords *** Open Connection And Log In @@ -58,7 +61,9 @@ Uninstall Lynis Download Logs [Documentation] Downloading logs and removing them + Execute Command chmod +r /var/log/lynis.log sudo=True SSHLibrary.Get File /var/log/lynis.log ${OUTPUT DIR}/lynis.log Execute Command rm /var/log/lynis.log sudo=True + Execute Command chmod +r /var/log/lynis-report.dat sudo=True SSHLibrary.Get File /var/log/lynis-report.dat ${OUTPUT DIR}/lynis-report.dat - Execute Command rm /var/log/lynis-report.dat sudo=True \ No newline at end of file + Execute Command rm /var/log/lynis-report.dat sudo=True