mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
replace RE_PROFILE_START
Replace RE_PROFILE_START with RE_PROFILE_START_2 and adjust all code sections that used RE_PROFILE_START_2. The only real change is that test_get_flags_invalid_01 and test_get_flags_invalid_02 now expect AppArmorException instead of AppArmorBug. Acked-by: Steve Beattie <steve@nxnw.org> for trunk
This commit is contained in:
@@ -92,10 +92,10 @@ class AaTest_get_profile_flags(AaTestWithTempdir):
|
||||
self._test_get_flags('/foo flags=(complain, audit)', 'complain, audit')
|
||||
|
||||
def test_get_flags_invalid_01(self):
|
||||
with self.assertRaises(AppArmorBug):
|
||||
with self.assertRaises(AppArmorException):
|
||||
self._test_get_flags('/foo ()', None)
|
||||
def test_get_flags_invalid_02(self):
|
||||
with self.assertRaises(AppArmorBug):
|
||||
with self.assertRaises(AppArmorException):
|
||||
self._test_get_flags('/foo flags=()', None)
|
||||
def test_get_flags_invalid_03(self):
|
||||
with self.assertRaises(AppArmorException):
|
||||
|
Reference in New Issue
Block a user