ci(gitlab): ensure audit.log exist.
This commit is contained in:
parent
5e5b10d5a7
commit
605d09d648
1 changed files with 2 additions and 0 deletions
|
|
@ -52,6 +52,8 @@ tests:
|
||||||
script:
|
script:
|
||||||
- cp tests/journalctl /usr/bin/journalctl
|
- cp tests/journalctl /usr/bin/journalctl
|
||||||
- chmod 755 /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 test ./cmd/aa-log -v -cover -coverprofile=coverage.out
|
||||||
- go tool cover -func=coverage.out
|
- go tool cover -func=coverage.out
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue