diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/kms-test-allplanes.py | 2 | ||||
-rwxr-xr-x | tests/kms-test-modes.py | 1 | ||||
-rwxr-xr-x | tests/kms-test-modeset.py | 1 | ||||
-rwxr-xr-x | tests/kms-test-pageflip.py | 1 | ||||
-rwxr-xr-x | tests/kms-test-planeposition.py | 1 | ||||
-rwxr-xr-x | tests/kmstest.py | 8 |
6 files changed, 10 insertions, 4 deletions
diff --git a/tests/kms-test-allplanes.py b/tests/kms-test-allplanes.py index 9e6a18b..f416723 100755 --- a/tests/kms-test-allplanes.py +++ b/tests/kms-test-allplanes.py @@ -80,4 +80,6 @@ class AllPlanesTest(kmstest.KMSTest): else: self.success() + self.atomic_crtc_disable(crtc) + AllPlanesTest().execute() diff --git a/tests/kms-test-modes.py b/tests/kms-test-modes.py index 31128a7..2ca45c4 100755 --- a/tests/kms-test-modes.py +++ b/tests/kms-test-modes.py @@ -24,6 +24,7 @@ class ModesTest(kmstest.KMSTest): self.logger.log("Atomic mode set complete") self.run(4) + self.atomic_crtc_disable(crtc) if self.flips == 0: raise RuntimeError("Page flip not registered") diff --git a/tests/kms-test-modeset.py b/tests/kms-test-modeset.py index e3551f1..f8a78ad 100755 --- a/tests/kms-test-modeset.py +++ b/tests/kms-test-modeset.py @@ -49,6 +49,7 @@ class ModeSetTest(kmstest.KMSTest): self.logger.log("Atomic mode set complete") self.run(5) + self.atomic_crtc_disable(crtc) if self.flips == 0: self.fail("Page flip not registered") diff --git a/tests/kms-test-pageflip.py b/tests/kms-test-pageflip.py index 2ab9b87..2aeaf34 100755 --- a/tests/kms-test-pageflip.py +++ b/tests/kms-test-pageflip.py @@ -100,6 +100,7 @@ class PageFlipTest(kmstest.KMSTest): self.loop.add_timer(10, self.stop_page_flip) self.run(11) + self.atomic_crtc_disable(crtc) if not self.flips: self.fail("No page flip registered") diff --git a/tests/kms-test-planeposition.py b/tests/kms-test-planeposition.py index b42de97..63f745b 100755 --- a/tests/kms-test-planeposition.py +++ b/tests/kms-test-planeposition.py @@ -101,6 +101,7 @@ class PlanePositionTest(kmstest.KMSTest): self.logger.log("Moved overlay plane to %d,%d" % offset) time.sleep(3) + self.atomic_crtc_disable(crtc) self.success() PlanePositionTest().execute() diff --git a/tests/kmstest.py b/tests/kmstest.py index cb0d9a7..62f0376 100755 --- a/tests/kmstest.py +++ b/tests/kmstest.py @@ -183,7 +183,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, @@ -213,7 +213,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) @@ -232,7 +232,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) @@ -242,7 +242,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 |