From 6064e30200131f51a6be3dd902de93ca18f6e7ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 6 Feb 2020 19:45:35 +0100 Subject: [PATCH] tests/fprintd: Remove the force-exit timeout Since we rely on meson now to do this, we don't need to have manual management of the timeout --- tests/fprintd.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/fprintd.py b/tests/fprintd.py index 9eb9650..7becf6f 100755 --- a/tests/fprintd.py +++ b/tests/fprintd.py @@ -290,13 +290,6 @@ class FPrintdVirtualDeviceTest(FPrintdTest): self.polkitd_stop() self.skipTest("Need virtual_image device to run the test") - def timeout_cb(*args): - # Note: With meson we could just rely on it to kill us - print("Test timed out, hard exiting") - sys.exit(1) - - self.test_timeout = GLib.timeout_add(get_timeout('test') * 1000, timeout_cb) - self._polkitd_obj.SetAllowed(['net.reactivated.fprint.device.setusername', 'net.reactivated.fprint.device.enroll', 'net.reactivated.fprint.device.verify']) @@ -331,7 +324,6 @@ class FPrintdVirtualDeviceTest(FPrintdTest): def tearDown(self): super().tearDown() - GLib.source_remove(self.test_timeout) self.device.disconnect(self.g_signal_id) self.daemon_stop()