summaryrefslogtreecommitdiff
path: root/py/tests
diff options
context:
space:
mode:
Diffstat (limited to 'py/tests')
-rwxr-xr-xpy/tests/db.py6
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()