summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2022-05-30 17:27:08 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-06-01 12:08:47 +0300
commit679b73640a390cf294f33e865a39ea8e8390a0fd (patch)
tree4ad3960d5830204b32d4daf0c36f02a96097d6e1 /test
parent9f5b790800f5a379f3e5fd53b9ade5f19a567734 (diff)
py: unittests: Fix test_select()
The test_select() currently uses self.assertTrue(len(ready_reqs) > 0) to see that cm.get_ready_requests() returns something. This is not always the case, as there may be two eventfd events queued, and the first call to cm.get_ready_requests() returns all the requests, and thus the second call returns none. Remove the self.assertTrue(len(ready_reqs) > 0) assert. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/py/unittests.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/py/unittests.py b/test/py/unittests.py
index 45b35223..33b35a0a 100755
--- a/test/py/unittests.py
+++ b/test/py/unittests.py
@@ -287,8 +287,6 @@ class SimpleCaptureMethods(CameraTesterBase):
ready_reqs = cm.get_ready_requests()
- self.assertTrue(len(ready_reqs) > 0)
-
reqs += ready_reqs
if len(reqs) == num_bufs: