mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
tests: Detect tests by checking any matching file prefix
We were testing only for .ioctl files, but we may now have .pcap file and ended up simply not running the synaptics test unless there was still a .ioctl file present.
This commit is contained in:
@@ -111,10 +111,10 @@ def custom():
|
||||
['%s' % os.path.join(ddir, "custom.py")])
|
||||
|
||||
try:
|
||||
if os.path.exists(os.path.join(ddir, "capture.ioctl")):
|
||||
if glob.glob(os.path.join(ddir, "capture.*")):
|
||||
capture()
|
||||
|
||||
if os.path.exists(os.path.join(ddir, "custom.ioctl")):
|
||||
if glob.glob(os.path.join(ddir, "custom.*")):
|
||||
custom()
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user