summaryrefslogtreecommitdiff
path: root/test-cli/test_main.py
diff options
context:
space:
mode:
authorHector Fernandez <hector@iatec.biz>2020-06-17 09:44:56 +0200
committerHector Fernandez <hector@iatec.biz>2020-06-17 09:44:56 +0200
commit09b3bb38fc7305c9b47c29bc90ebc9c636827307 (patch)
treea793c8f232031183960178d2a18fcde4baf3348f /test-cli/test_main.py
parent0dd2613b88d937e71b274d68924088b1bad65de4 (diff)
downloadboard-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_main.py')
-rw-r--r--test-cli/test_main.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/test-cli/test_main.py b/test-cli/test_main.py
index 1f2ff90..ea20cee 100644
--- a/test-cli/test_main.py
+++ b/test-cli/test_main.py
@@ -8,7 +8,6 @@ from test.helpers.setup_xml import XMLSetup
from test.runners.simple import SimpleTestRunner
from test.helpers.syscmd import TestSysCommand
from test.tests.qethernet import Qethernet
-from test.tests.qaudio import Qaudio
from test.tests.qram import Qram
from test.tests.qusb import Qusb
from test.tests.qi2c import Qi2c
@@ -23,9 +22,10 @@ from test.helpers.globalVariables import globalVar
import socket
from test.helpers.iseelogger import ISEE_Logger
import logging
-from test.flashers.flasheeprom import flash_eeprom
-from test.flashers.flashmemory import flash_memory
+from test.tasks.flasheeprom import flash_eeprom
+from test.tasks.flashmemory import flash_memory
from test.helpers.qrreader import QRReader
+from test.tasks.generatedmesg import generate_dmesg
# global variables
psdbObj = TestSrv_Database()
@@ -49,9 +49,7 @@ def create_paramslist(params):
def add_test_task(suite, testdefname, paramlist):
- if testdefname == "AUDIO":
- suite.addTest(Qaudio(testdefname, "execute", paramlist))
- elif testdefname == "RAM":
+ if testdefname == "RAM":
suite.addTest(Qram(testdefname, "execute", paramlist))
elif testdefname == "SERIALDUAL":
suite.addTest(Qduplex(testdefname, "execute", paramlist))
@@ -136,6 +134,9 @@ def main():
runner = SimpleTestRunner(psdbObj)
loggerObj.getlogger().info("Tests running")
testresult = runner.run(create_testsuite())
+ # save dmesg
+ generate_dmesg(globalVar.testid_ctl, psdbObj)
+
# execute aditional tasks, only if the test was succesfull
if testresult.wasSuccessful():
loggerObj.getlogger().info("Extra tasks running")