2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-05 16:55:32 +00:00

utils: remove the skip_*_profiles testing bypass

The utils should be able to skip profiles that it can't parse now,
so this test suite bypass mechanism should no longer be necessary.

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
Ryan Lee
2025-02-27 16:14:02 -08:00
parent e80d5bd3d4
commit 930218193b
5 changed files with 9 additions and 16 deletions

View File

@@ -12,7 +12,7 @@
import unittest
import apparmor.aa as aa
from common_test import AATest, setup_aa, setup_all_loops, skip_active_profiles, skip_extra_profiles
from common_test import AATest, setup_aa, setup_all_loops
class TestFoo(AATest):
@@ -23,12 +23,12 @@ class TestFoo(AATest):
# (to make sure an empty or non-existing directory won't make this test useless).
def test_active_profiles(self):
aa.read_profiles(skip_profiles=skip_active_profiles)
aa.read_profiles()
self.assertGreaterEqual(len(aa.active_profiles.profile_names), 42)
def test_extra_profiles(self):
aa.read_inactive_profiles(skip_profiles=skip_extra_profiles)
aa.read_inactive_profiles()
self.assertGreaterEqual(len(aa.extra_profiles.profile_names), 100)