All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-renesas-soc@vger.kernel.org
Cc: Kieran Bingham <kieran.bingham@ideasonboard.com>
Subject: [PATCH] kmstest.py: Update to th latest kmsxx Python bindings
Date: Thu,  7 Dec 2017 20:33:12 +0200	[thread overview]
Message-ID: <20171207183312.27962-1-laurent.pinchart@ideasonboard.com> (raw)

Commit 706a44abb3aa ("Update to latest pybind11") of kmsxx broke the
test suite by changing the signature of the AtomicRequest::commit
function. Update the test suite accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 tests/kmstest.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

The aforementioned commit also broke the test suite due to two other issues
that need to be fixed in kmsxx. Two patches have been submitted for upstream
inclusion, they can in the meantime be found at

	git://git.ideasonboard.com/renesas/kmsxx.git master

diff --git a/tests/kmstest.py b/tests/kmstest.py
index 45d619c7a9be..7de785edd1e3 100755
--- a/tests/kmstest.py
+++ b/tests/kmstest.py
@@ -238,7 +238,7 @@ class KMSTest(object):
         if sync:
             return req.commit_sync(True)
         else:
-            return req.commit(self, True)
+            return req.commit(0, True)
 
     def atomic_crtc_mode_set(self, crtc, connector, mode, fb=None, sync=False):
         """Perform a mode set on the given connector and CRTC. The framebuffer,
@@ -268,7 +268,7 @@ class KMSTest(object):
         if sync:
             return req.commit_sync(True)
         else:
-            return req.commit(self, True)
+            return req.commit(0, True)
 
     def atomic_plane_set(self, plane, crtc, source, destination, fb, sync=False):
         req = pykms.AtomicReq(self.card)
@@ -287,7 +287,7 @@ class KMSTest(object):
         if sync:
             return req.commit_sync()
         else:
-            return req.commit(self)
+            return req.commit(0)
 
     def atomic_planes_disable(self, sync=True):
         req = pykms.AtomicReq(self.card)
@@ -297,7 +297,7 @@ class KMSTest(object):
         if sync:
             return req.commit_sync()
         else:
-            return req.commit(self)
+            return req.commit(0)
 
     def __handle_page_flip(self, frame, time):
         self.flips += 1
-- 
Regards,

Laurent Pinchart

             reply	other threads:[~2017-12-07 18:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-07 18:33 Laurent Pinchart [this message]
2017-12-13 23:43 ` [PATCH] kmstest.py: Update to th latest kmsxx Python bindings Kieran Bingham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171207183312.27962-1-laurent.pinchart@ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=linux-renesas-soc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.