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