From a4033f795071fd2303af7daff963415957ae30e2 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 1 Oct 2023 19:12:27 +0100 Subject: [PATCH] fix(test): aa-log unit tests. --- pkg/aa/profile_test.go | 2 +- tests/string.aa | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/aa/profile_test.go b/pkg/aa/profile_test.go index 4817ef81a..062bd4eb5 100644 --- a/pkg/aa/profile_test.go +++ b/pkg/aa/profile_test.go @@ -321,7 +321,7 @@ func TestAppArmorProfile_Integration(t *testing.T) { }, }, }, - want: readprofile("apparmor.d/profiles-a-f/aa-status") + "\n", + want: readprofile("apparmor.d/profiles-a-f/aa-status"), }, } for _, tt := range tests { diff --git a/tests/string.aa b/tests/string.aa index d1fd01ac5..c2c52f461 100644 --- a/tests/string.aa +++ b/tests/string.aa @@ -5,7 +5,7 @@ alias /mnt/usr -> /usr, include -@{exec_path} = @{bin}/foo @{lib}/foo +@{exec_path} = @{bin}/foo @{lib}/foo profile foo @{exec_path} xattrs=(security.tagged=allowed) flags=(complain attach_disconnected) { include include