mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
device: Return 'enroll-failed' on cancelled enrollment
We were returning an 'enroll-unknown-error' while we actually know what happened, so better to return a soft operation failure.
This commit is contained in:
committed by
Bastien Nocera
parent
c12778ec5b
commit
b312a5e540
@ -521,6 +521,13 @@ class FPrintdVirtualDeviceTest(FPrintdTest):
|
||||
|
||||
self.device.Release()
|
||||
|
||||
def test_enroll_stop_cancels(self):
|
||||
self.device.Claim('(s)', 'testuser')
|
||||
self.device.EnrollStart('(s)', 'left-index-finger')
|
||||
self.device.EnrollStop()
|
||||
self.wait_for_result(expected='enroll-failed')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) == 2 and sys.argv[1] == "list-tests":
|
||||
for machine, human in list_tests():
|
||||
|
||||
Reference in New Issue
Block a user