mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 00:55:07 +03:00
test: v4l2_compat: Report test as skipped if no compatible driver found
The V4L2 compatibility layer test includes a list of supported devices, as V4L2 compatibility isn't officially supported with all devices yet. If no supported device is present, the test reports success, while it actually hasn't run. Report it being skipped in that case. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
parent
a881b90b5d
commit
556e2de509
1 changed files with 4 additions and 0 deletions
|
@ -147,6 +147,10 @@ def main(argv):
|
||||||
print('success')
|
print('success')
|
||||||
drivers_tested[driver] = True
|
drivers_tested[driver] = True
|
||||||
|
|
||||||
|
if len(drivers_tested) == 0:
|
||||||
|
print(f'No compatible drivers found')
|
||||||
|
return TestSkip
|
||||||
|
|
||||||
if len(failed) > 0:
|
if len(failed) > 0:
|
||||||
print(f'Failed {len(failed)} tests:')
|
print(f'Failed {len(failed)} tests:')
|
||||||
for device in failed:
|
for device in failed:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue