mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 12:23:34 +02:00
tests/fprintd: Add missing implementation of list_tests
Use unittest_inspector that we provide for meson tests inspection as well
This commit is contained in:
@ -1114,6 +1114,11 @@ class FPrintdUtilsTest(FPrintdVirtualDeviceBaseTest):
|
|||||||
self.device.Release()
|
self.device.Release()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def list_tests():
|
||||||
|
import unittest_inspector
|
||||||
|
return unittest_inspector.list_tests(sys.modules[__name__])
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if len(sys.argv) == 2 and sys.argv[1] == "list-tests":
|
if len(sys.argv) == 2 and sys.argv[1] == "list-tests":
|
||||||
for machine, human in list_tests():
|
for machine, human in list_tests():
|
||||||
|
|||||||
Reference in New Issue
Block a user