diff options
author | Hector Fernandez <hector@iatec.biz> | 2020-06-17 09:44:56 +0200 |
---|---|---|
committer | Hector Fernandez <hector@iatec.biz> | 2020-06-17 09:44:56 +0200 |
commit | 09b3bb38fc7305c9b47c29bc90ebc9c636827307 (patch) | |
tree | a793c8f232031183960178d2a18fcde4baf3348f /test-cli/test/tests/qram.py | |
parent | 0dd2613b88d937e71b274d68924088b1bad65de4 (diff) | |
download | board-09b3bb38fc7305c9b47c29bc90ebc9c636827307.zip board-09b3bb38fc7305c9b47c29bc90ebc9c636827307.tar.gz board-09b3bb38fc7305c9b47c29bc90ebc9c636827307.tar.bz2 |
SOPA0000: Added support for saving results (strings or files) in the DB. It also saves a final DMESG file.
Diffstat (limited to 'test-cli/test/tests/qram.py')
-rw-r--r-- | test-cli/test/tests/qram.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test-cli/test/tests/qram.py b/test-cli/test/tests/qram.py index 5a7734a..561e980 100644 --- a/test-cli/test/tests/qram.py +++ b/test-cli/test/tests/qram.py @@ -23,6 +23,12 @@ class Qram(unittest.TestCase): def execute(self): try: - sh.memtester(self.__memsize, "1", _out="/dev/null") + p = sh.memtester(self.__memsize, "1", _out="/dev/null") + except sh.ErrorReturnCode as e: self.fail("failed: could not complete memtester command") + + def getresults(self): + # resultlist is a python list of python dictionaries + resultlist = [] + return resultlist |