From 605d09d648264b9ecae44c14a19bb1889598cc32 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 12 Mar 2023 17:03:07 +0000 Subject: [PATCH] ci(gitlab): ensure audit.log exist. --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a0966f30..e51f9d84 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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