2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-01 14:55:10 +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

@@ -18,7 +18,7 @@ import sys
import unittest
import apparmor.aa as apparmor
from common_test import AATest, read_file, write_file, setup_aa, setup_all_loops, skip_active_profiles
from common_test import AATest, read_file, write_file, setup_aa, setup_all_loops
# Use the same python as the one this script is being run with
python_interpreter = sys.executable
@@ -35,7 +35,7 @@ class MinitoolsTest(AATest):
# Should be the set of cleanprofile
self.profile_dir = self.tmpdir + '/profiles'
shutil.copytree('../../profiles/apparmor.d/', self.profile_dir,
symlinks=True, ignore=shutil.ignore_patterns(*skip_active_profiles))
symlinks=True)
apparmor.profile_dir = self.profile_dir