summaryrefslogtreecommitdiff
path: root/test-cli/test/tests/qscreen.py
diff options
context:
space:
mode:
authorManel Caro <mcaro@iseebcn.com>2020-03-04 17:46:36 +0100
committerManel Caro <mcaro@iseebcn.com>2020-03-04 17:46:36 +0100
commit09de774dcc1a5abc1c8f3a00fdb039aa3c522f52 (patch)
treec4bd3963d0df01d2e3a33732247388ed4651b186 /test-cli/test/tests/qscreen.py
parentb6932fbaf898724ae87c29f8965621610f377084 (diff)
downloadboard-09de774dcc1a5abc1c8f3a00fdb039aa3c522f52.zip
board-09de774dcc1a5abc1c8f3a00fdb039aa3c522f52.tar.gz
board-09de774dcc1a5abc1c8f3a00fdb039aa3c522f52.tar.bz2
SOPA Initial Commit
Diffstat (limited to 'test-cli/test/tests/qscreen.py')
-rw-r--r--test-cli/test/tests/qscreen.py18
1 files changed, 6 insertions, 12 deletions
diff --git a/test-cli/test/tests/qscreen.py b/test-cli/test/tests/qscreen.py
index b8a5a48..87e53b2 100644
--- a/test-cli/test/tests/qscreen.py
+++ b/test-cli/test/tests/qscreen.py
@@ -5,9 +5,13 @@ from test.helpers.cv_display_test import pattern_detect
class Qscreen(unittest.TestCase):
- def __init__(self, testname, testfunc, display):
+ #varlist: display
+ def __init__(self, testname, testfunc, varlist):
super(Qscreen, self).__init__(testfunc)
- self.__display = display
+ if "display" in varlist:
+ self.__display = varlist["display"]
+ else:
+ raise Exception('display param inside Qscreen have been be defined')
self._testMethodDoc = testname
def execute(self):
@@ -17,15 +21,5 @@ class Qscreen(unittest.TestCase):
test_screen = pattern_detect(1)
if not test_screen=="0":
self.fail("failed: {}".format(test_screen))
- str_cmd= "fbi -T 1 /home/root/result_hdmi_img.jpg -d /dev/fb0 --noverbose -a"
- show_img = SysCommand("show-image", str_cmd)
- show_img.execute()
else:
self.fail("failed: could not display the image")
- try:
- str_cmd= "fbi -T 1 /home/root/result_hdmi_img.jpg -d /dev/fb0 --noverbose -a"
- show_img = SysCommand("show-image", str_cmd)
- show_img.execute()
- except ValueError:
- print("COULD NOT DISPLAY IMAGE")
-