Skip to content

Commit

Permalink
Add output info to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagocoutinho committed Jul 12, 2024
1 parent f052c8c commit 181de7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 181de7f

Please sign in to comment.