#!/usr/bin/python3.4

import pykms

card = pykms.Card()

conn = card.get_first_connected_connector()

mode = conn.get_default_mode()

fb = pykms.Framebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
fb.draw_test_pattern(0);

crtc = conn.get_current_crtc()

crtc.set_mode(conn, fb, mode)

print("OK")


@@ -195,18 +195,21 @@
 XR24%22);%0A
-fb
+pykms
 .draw_te
@@ -223,9 +223,10 @@
 ern(
-0
+fb
 );%0A%0A

fix functest.py