2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00

Run severity tests with official severity.db

... instead of the slightly outdated copy in test/
This commit is contained in:
Christian Boltz
2021-04-14 21:32:34 +02:00
parent d9cb8df696
commit a07515bdd4
5 changed files with 4 additions and 467 deletions

View File

@@ -434,7 +434,7 @@ class CapabiliySeverityTest(AATest):
('foo', 'unknown'),
]
def _run_test(self, params, expected):
sev_db = severity.Severity('severity.db', 'unknown')
sev_db = severity.Severity('../severity.db', 'unknown')
obj = CapabilityRule(params)
rank = obj.severity(sev_db)
self.assertEqual(rank, expected)