2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-02 15:25:27 +00:00

import is_skippable_file from apparmor.common

... instead of indirectly using it via apparmor.aa
This commit is contained in:
Christian Boltz
2021-08-24 22:47:39 +02:00
parent 8b2fe01c7d
commit c09e0b6ef3
3 changed files with 9 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ from common_test import AATest, setup_all_loops, setup_aa
import apparmor.aa as apparmor
import os
from apparmor.common import open_file_read, AppArmorException
from apparmor.common import open_file_read, AppArmorException, is_skippable_file
# This testcase will parse all parser/tst/simple_tests with parse_profile_data(),
# except the files listed in one of the arrays below.
@@ -528,7 +528,7 @@ def find_and_setup_test_profiles(profile_dir):
for file in files:
file_with_path = os.path.join(root, file)
if not apparmor.is_skippable_file(file) and relpath != '.':
if not is_skippable_file(file) and relpath != '.':
skipped += parse_test_profiles(file_with_path)
if skipped: