summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (from parent 1: 6d28a0d)
raw | patch | inline | side by side (from parent 1: 6d28a0d)
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | |
Thu, 2 Mar 2017 19:47:36 +0000 (21:47 +0200) | ||
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Fri, 3 Mar 2017 07:59:56 +0000 (09:59 +0200) |
When a command line argument is present, its value is used as a
connector name that the script will try to use.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
connector name that the script will try to use.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
py/tests/db.py | patch | blob | history |
diff --git a/py/tests/db.py b/py/tests/db.py
index f0a962d72216ebb61960766ea4e1a0dbc2160ddc..eb31669ff5b6b3653de70736b93f89f36cae9584 100755 (executable)
--- a/py/tests/db.py
+++ b/py/tests/db.py
else:
crtc.page_flip(fb, self)
+if len(sys.argv) > 1:
+ conn_name = sys.argv[1]
+else:
+ conn_name = ''
card = pykms.Card()
res = pykms.ResourceManager(card)
-conn = res.reserve_connector()
+conn = res.reserve_connector(conn_name)
crtc = res.reserve_crtc(conn)
mode = conn.get_default_mode()