Add read permission for test logs file 11/2211/3
authorDaniel Stoica <daniel.stoica@enea.com>
Mon, 27 Jan 2020 16:36:08 +0000 (18:36 +0200)
committerDaniel Stoica <daniel.stoica@enea.com>
Wed, 29 Jan 2020 12:59:13 +0000 (14:59 +0200)
Signed-off-by: Daniel Stoica <daniel.stoica@enea.com>
Change-Id: Ic6a26f14cce46dde019357c0adf8f9b4cd9790cf

tests/os/lynis/lynis.robot

index 8d0069a..7d88c0f 100644 (file)
@@ -58,7 +58,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