ci(gitlab): ensure audit.log exist.

This commit is contained in:
Alexandre Pujol 2023-03-12 17:03:07 +00:00
parent 5e5b10d5a7
commit 605d09d648
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -52,6 +52,8 @@ tests:
script:
- cp tests/journalctl /usr/bin/journalctl
- chmod 755 /usr/bin/journalctl
- mkdir -p /var/log/audit/
- touch /var/log/audit/audit.log /var/log/audit/audit.log.1
- go test ./cmd/aa-log -v -cover -coverprofile=coverage.out
- go tool cover -func=coverage.out