summaryrefslogtreecommitdiff
path: root/pkg/apparmor/aaparser_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/apparmor/aaparser_test.go')
-rw-r--r--pkg/apparmor/aaparser_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/apparmor/aaparser_test.go b/pkg/apparmor/aaparser_test.go
index 9d97969c7..296c101ed 100644
--- a/pkg/apparmor/aaparser_test.go
+++ b/pkg/apparmor/aaparser_test.go
@@ -12,6 +12,9 @@ type versionExpected struct {
}
func TestParseVersion(t *testing.T) {
+ if !IsEnabled() {
+ t.Skip("AppArmor disabled: skipping tests")
+ }
versions := []versionExpected{
{
output: `AppArmor parser version 2.10