diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-03-02 21:47:36 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-03-03 09:59:56 +0200 |
commit | c02a6e019ef4f2a77fcbde67a720221c7f37225e (patch) | |
tree | 3ef57350e95501036dc9c58364b6d76dcb5cf7d9 /py/tests | |
parent | 6d28a0dd5d6747116f631d24bcc59d944a1b8b95 (diff) |
py: db.py: Add command line argument to specify connector
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>
Diffstat (limited to 'py/tests')
-rwxr-xr-x | py/tests/db.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/py/tests/db.py b/py/tests/db.py index f0a962d..eb31669 100755 --- a/py/tests/db.py +++ b/py/tests/db.py @@ -56,10 +56,14 @@ class FlipHandler(pykms.PageFlipHandlerBase): 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() |