summaryrefslogtreecommitdiff
path: root/test-cli/test/tests/qnand.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/qnand.py
parentb6932fbaf898724ae87c29f8965621610f377084 (diff)
downloadboard-09de774dcc1a5abc1c8f3a00fdb039aa3c522f52.zip
board-09de774dcc1a5abc1c8f3a00fdb039aa3c522f52.tar.gz
board-09de774dcc1a5abc1c8f3a00fdb039aa3c522f52.tar.bz2
SOPA Initial Commit
Diffstat (limited to 'test-cli/test/tests/qnand.py')
-rw-r--r--test-cli/test/tests/qnand.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/test-cli/test/tests/qnand.py b/test-cli/test/tests/qnand.py
new file mode 100644
index 0000000..9f2cd47
--- /dev/null
+++ b/test-cli/test/tests/qnand.py
@@ -0,0 +1,22 @@
+import unittest
+import sh
+
+class Qnand(unittest.TestCase):
+
+ __device = "10M"
+
+ # varlist: device
+ def __init__(self, testname, testfunc, varlist):
+ super(Qnand, self).__init__(testfunc)
+
+ if "device" in varlist:
+ self.__device = varlist["device"]
+ else:
+ raise Exception('device param inside Qnand must be defined')
+ self._testMethodDoc = testname
+
+ def execute(self):
+ try:
+ sh.nandtest("-m", self.__device)
+ except sh.ErrorReturnCode as e:
+ self.fail("failed: could not complete nandtest command")