test(integration): update aa-test.

This commit is contained in:
Alexandre Pujol 2023-09-30 23:21:26 +01:00
parent 972b08e74c
commit 4d0ccebb21
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 67 additions and 31 deletions

View file

@ -139,4 +139,3 @@ func (t *Test) run(cmdline string, in string) error {
}
return err
}
}

View file

@ -106,3 +106,11 @@ func (t *TestSuite) Results() string {
aaLogs := logs.NewApparmorLogs(file, "")
return aaLogs.String()
}
func (t *TestSuite) GetDependencies() []string {
res := []string{}
for _, test := range t.Tests {
res = append(res, test.Dependencies...)
}
return res
}