fix(test): update test to the new value of bin.

This commit is contained in:
Alexandre Pujol 2025-05-01 19:56:34 +02:00
parent c969faf6e8
commit 5edde91d44
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ func TestAppArmorProfileFile_resolveValues(t *testing.T) {
{ {
name: "simple", name: "simple",
input: "@{bin}/foo", input: "@{bin}/foo",
want: []string{"/{,usr/}{,s}bin/foo"}, want: []string{"/{,usr/}bin/foo"},
}, },
{ {
name: "double", name: "double",

View file

@ -209,7 +209,7 @@ func TestBuilder_Apply(t *testing.T) {
want: ` want: `
@{exec_path} = @{bin}/baloo_file @{lib}/{,kf6/}baloo_file @{exec_path} = @{bin}/baloo_file @{lib}/{,kf6/}baloo_file
@{exec_path} += @{lib}/@{multiarch}/{,libexec/}baloo_file @{exec_path} += @{lib}/@{multiarch}/{,libexec/}baloo_file
profile baloo /{{,usr/}{,s}bin/baloo_file,{,usr/}lib{,exec,32,64}/{,kf6/}baloo_file,{,usr/}lib{,exec,32,64}/*-linux-gnu*/{,libexec/}baloo_file} { profile baloo /{{,usr/}bin/baloo_file,{,usr/}lib{,exec,32,64}/{,kf6/}baloo_file,{,usr/}lib{,exec,32,64}/*-linux-gnu*/{,libexec/}baloo_file} {
include <abstractions/base> include <abstractions/base>
@{exec_path} mr, @{exec_path} mr,