mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
tests/virtual-device: Reset keep alive status when test is done
We don't want this to be preserved across tests, since it's meant to be used inside a single test case.
This commit is contained in:
@@ -103,6 +103,7 @@ class VirtualDeviceBase(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
if self._close_on_teardown:
|
||||
self.assertTrue(self.dev.is_open())
|
||||
self.set_keep_alive(False)
|
||||
self.send_command('SET_ENROLL_STAGES', self.DEFAULT_ENROLL_STEPS)
|
||||
self.dev.close_sync()
|
||||
self.assertFalse(self.dev.is_open())
|
||||
|
||||
Reference in New Issue
Block a user