tests/pam: Call parent class tearDown class method

Tests were passing but we were also hanging in some platforms (as debian
and ubuntu) because the resources were not released.

So fix this by ensuring that we call the parent class tearDown function
when required
This commit is contained in:
Marco Trevisan (Treviño) 2024-09-05 04:02:40 +02:00
parent a1ce732237
commit 64ad4b7fc9

View file

@ -72,6 +72,8 @@ class TestPamFprintd(dbusmock.DBusTestCase):
# Remove pam wrapper files, as they may break other tests
[shutil.rmtree(i) for i in glob.glob('/tmp/pam.[0-9A-z]')]
dbusmock.DBusTestCase.tearDownClass()
def setUp(self):
(self.p_mock, self.obj_fprintd_manager) = self.spawn_server_template(
self.template_name, {})