build(directive): support both liust & map.
This commit is contained in:
parent
f81ceb9185
commit
88fcdd8c8e
10 changed files with 126 additions and 86 deletions
|
|
@ -22,10 +22,11 @@ func TestStack_Apply(t *testing.T) {
|
|||
name: "stack",
|
||||
rootApparmord: paths.New("../../../apparmor.d/groups/freedesktop/"),
|
||||
opt: &Option{
|
||||
Name: "stack",
|
||||
Args: map[string]string{"plymouth": ""},
|
||||
File: nil,
|
||||
Raw: " #aa:stack plymouth",
|
||||
Name: "stack",
|
||||
ArgMap: map[string]string{"plymouth": ""},
|
||||
ArgList: []string{"plymouth"},
|
||||
File: nil,
|
||||
Raw: " #aa:stack plymouth",
|
||||
},
|
||||
profile: `
|
||||
profile parent @{exec_path} {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue