diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-09-14 04:40:53 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-09-19 20:45:36 +0300 |
commit | 556e2de509cf561c5584d77e731f776c5b357737 (patch) | |
tree | ba864aa5223c8c045bbe58587afe5af9e3fc14ee /test/v4l2_compat | |
parent | a881b90b5d2a51e196137221a7487055c03926cd (diff) |
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>
Diffstat (limited to 'test/v4l2_compat')
-rwxr-xr-x | test/v4l2_compat/v4l2_compat_test.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/v4l2_compat/v4l2_compat_test.py b/test/v4l2_compat/v4l2_compat_test.py index ae892ced..be16af3b 100755 --- a/test/v4l2_compat/v4l2_compat_test.py +++ b/test/v4l2_compat/v4l2_compat_test.py @@ -147,6 +147,10 @@ def main(argv): print('success') drivers_tested[driver] = True + if len(drivers_tested) == 0: + print(f'No compatible drivers found') + return TestSkip + if len(failed) > 0: print(f'Failed {len(failed)} tests:') for device in failed: |