build: exex directive: sort & cleanup generated rules.
This commit is contained in:
parent
73fe7a7475
commit
d5470b8404
2 changed files with 9 additions and 9 deletions
|
|
@ -28,9 +28,8 @@ func TestExec_Apply(t *testing.T) {
|
|||
Raw: " #aa:exec DiscoverNotifier",
|
||||
},
|
||||
profile: ` #aa:exec DiscoverNotifier`,
|
||||
want: ` @{lib}/DiscoverNotifier Px,
|
||||
@{lib}/@{multiarch}/{,libexec/}DiscoverNotifier Px,
|
||||
`,
|
||||
want: ` @{lib}/@{multiarch}/{,libexec/}DiscoverNotifier Px,
|
||||
@{lib}/DiscoverNotifier Px,`,
|
||||
},
|
||||
{
|
||||
name: "exec-unconfined",
|
||||
|
|
@ -43,8 +42,7 @@ func TestExec_Apply(t *testing.T) {
|
|||
},
|
||||
profile: ` #aa:exec U polkit-agent-helper`,
|
||||
want: ` @{lib}/polkit-[0-9]/polkit-agent-helper-[0-9] Ux,
|
||||
@{lib}/polkit-agent-helper-[0-9] Ux,
|
||||
`,
|
||||
@{lib}/polkit-agent-helper-[0-9] Ux,`,
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue