mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
tests: Use addCleanup to stop polkitd
This commit is contained in:
@ -598,6 +598,7 @@ class FPrintdVirtualDeviceBaseTest(FPrintdVirtualImageDeviceBaseTests):
|
|||||||
self.manager = None
|
self.manager = None
|
||||||
self.device = None
|
self.device = None
|
||||||
self.polkitd_start()
|
self.polkitd_start()
|
||||||
|
self.addCleanup(self.polkitd_stop)
|
||||||
|
|
||||||
fifo_path = os.path.join(self.tmpdir, 'logind_inhibit_fifo')
|
fifo_path = os.path.join(self.tmpdir, 'logind_inhibit_fifo')
|
||||||
os.mkfifo(fifo_path)
|
os.mkfifo(fifo_path)
|
||||||
@ -660,7 +661,6 @@ class FPrintdVirtualDeviceBaseTest(FPrintdVirtualImageDeviceBaseTests):
|
|||||||
self._changed_properties = []
|
self._changed_properties = []
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
self.polkitd_stop()
|
|
||||||
self.device = None
|
self.device = None
|
||||||
self.manager = None
|
self.manager = None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user