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:
parent
cdaa3497d7
commit
d5fda36bc0
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue