summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2024-04-04 03:06:11 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2024-04-04 03:13:40 +0200
commite429e682463cae93d38c30c0390549e58d13816f (patch)
treef0662f54bac9a2d8eb954e9b4d6ca070ab033503
parentd065842604881d1208985026ab0ea8c1e2479e74 (diff)
tests/fprintd: Make tests pass with libfprint 1.94.7
-rw-r--r--tests/fprintd.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/fprintd.py b/tests/fprintd.py
index d71e6d9..370d7bb 100644
--- a/tests/fprintd.py
+++ b/tests/fprintd.py
@@ -365,6 +365,8 @@ class FPrintdTest(dbusmock.DBusTestCase):
self.run_dir = os.path.join(self.test_dir, 'run')
self.device_id = 0
self._async_call_res = {}
+ os.environ['FP_DRIVERS_ALLOWLIST'] = self.device_driver
+ # TODO: Remove this when we depend on libfprint 1.94.7
os.environ['FP_DRIVERS_WHITELIST'] = self.device_driver
# Always start fake polkitd because of
@@ -1249,11 +1251,15 @@ class FPrintdManagerTests(FPrintdVirtualDeviceBaseTest):
class FPrintdManagerPreStartTests(FPrintdVirtualImageDeviceBaseTests):
def test_manager_get_no_devices(self):
+ os.environ['FP_DRIVERS_ALLOWLIST'] = 'hopefully_no_existing_driver'
+ # TODO: Remove this when we depend on libfprint 1.94.7
os.environ['FP_DRIVERS_WHITELIST'] = 'hopefully_no_existing_driver'
self.daemon_start()
self.assertListEqual(self.manager.GetDevices(), [])
def test_manager_get_no_default_device(self):
+ os.environ['FP_DRIVERS_ALLOWLIST'] = 'hopefully_no_existing_driver'
+ # TODO: Remove this when we depend on libfprint 1.94.7
os.environ['FP_DRIVERS_WHITELIST'] = 'hopefully_no_existing_driver'
self.daemon_start()