diff options
Diffstat (limited to 'test-cli/test_main.py')
-rw-r--r-- | test-cli/test_main.py | 13 |
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") |