summaryrefslogtreecommitdiff
path: root/test-cli/test/tests/qnand.py
diff options
context:
space:
mode:
Diffstat (limited to 'test-cli/test/tests/qnand.py')
-rw-r--r--test-cli/test/tests/qnand.py29
1 files changed, 8 insertions, 21 deletions
diff --git a/test-cli/test/tests/qnand.py b/test-cli/test/tests/qnand.py
index d7c22b3..8c78e2b 100644
--- a/test-cli/test/tests/qnand.py
+++ b/test-cli/test/tests/qnand.py
@@ -22,34 +22,21 @@ class Qnand(unittest.TestCase):
try:
p = sh.nandtest("-m", self.__device)
# save result
- with open('/tmp/nand-nandtest.txt', 'w') as outfile:
+ with open('/tmp/station/nand-nandtest.txt', 'w') as outfile:
n = outfile.write(p.stdout.decode('ascii'))
+ outfile.close()
self.__resultlist.append(
{
- "desc": "nandtest output",
- "data": "/tmp/nand-nandtest.txt",
- "type": "file"
+ "description": "nandtest output",
+ "filepath": "/tmp/station/nand-nandtest.txt",
+ "mimetype": "text/plain"
}
)
-
except sh.ErrorReturnCode as e:
- self.__resultlist.append(
- {
- "desc": "Test result",
- "data": "FAILED: could not complete nandtest command",
- "type": "string"
- }
- )
self.fail("failed: could not complete nandtest command")
- # Test successful
- self.__resultlist.append(
- {
- "desc": "Test result",
- "data": "OK",
- "type": "string"
- }
- )
-
def getresults(self):
return self.__resultlist
+
+ def gettextresult(self):
+ return ""