From 897cbd341ee9e9af430059ab0d005265bd8f0efd Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Tue, 1 Dec 2020 12:44:51 +0100 Subject: [PATCH] tests: Skip flaky test_enroll_verify_list_delete test with old libfprint The test can hang forever unless a fixed libfprint version is used. --- tests/fprintd.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/fprintd.py b/tests/fprintd.py index 2a6511c..bb9761d 100644 --- a/tests/fprintd.py +++ b/tests/fprintd.py @@ -737,6 +737,11 @@ class FPrintdVirtualDeviceClaimedTest(FPrintdVirtualDeviceBaseTest): self.device.VerifyStart('(s)', 'any') def test_enroll_verify_list_delete(self): + # This test can trigger a race in older libfprint, only run if we have + # hotplug support, which coincides with the fixed release. + if not self._has_hotplug: + self.skipTest("libfprint is too old for hotplug") + with self.assertFprintError('NoEnrolledPrints'): self.device.ListEnrolledFingers('(s)', 'testuser')