From 181de7fe7ab39c4247a6f45795091e25b995e464 Mon Sep 17 00:00:00 2001 From: Jose Tiago Macara Coutinho Date: Fri, 12 Jul 2024 10:21:58 +0200 Subject: [PATCH] Add output info to tests --- tests/test_video.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_video.py b/tests/test_video.py index 060f75e..f0b8d3d 100644 --- a/tests/test_video.py +++ b/tests/test_video.py @@ -126,6 +126,11 @@ def ioctl(self, fd, ioc, arg): # noqa: C901 raise OSError(EINVAL, "ups!") arg.name = self.input0_name arg.type = raw.InputType.CAMERA + if isinstance(arg, raw.v4l2_output): + if arg.index > 0: + raise OSError(EINVAL, "ups!") + arg.name = self.input0_name + arg.type = raw.OutputType.ANALOG elif isinstance(arg, raw.v4l2_query_ext_ctrl): if arg.index == 0: arg.name = b"brightness"