diff options
author | Manel Caro <mcaro@iseebcn.com> | 2020-03-04 19:38:10 +0100 |
---|---|---|
committer | Manel Caro <mcaro@iseebcn.com> | 2020-03-04 19:38:10 +0100 |
commit | 7490324bc98248fc82be814920e2deff4114acc8 (patch) | |
tree | 2e6493dde1dddc7014da4ba289b91d0e28878d7f /test-cli | |
parent | a4d7e279731b4b2aa6fb825b096305556d1e825a (diff) | |
download | board-7490324bc98248fc82be814920e2deff4114acc8.zip board-7490324bc98248fc82be814920e2deff4114acc8.tar.gz board-7490324bc98248fc82be814920e2deff4114acc8.tar.bz2 |
Added station
Diffstat (limited to 'test-cli')
-rw-r--r-- | test-cli/test/helpers/testsrv_db.py | 4 | ||||
-rw-r--r-- | test-cli/test_main.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test-cli/test/helpers/testsrv_db.py b/test-cli/test/helpers/testsrv_db.py index f08cb17..7ed02f3 100644 --- a/test-cli/test/helpers/testsrv_db.py +++ b/test-cli/test/helpers/testsrv_db.py @@ -119,9 +119,9 @@ class TestSrv_Database(object): #print(r) return None - def open_testbatch(self, board_uuid): + def open_testbatch(self, board_uuid, station): '''get the board test list''' - sql = "SELECT isee.open_testbatch('{}')".format(board_uuid) + sql = "SELECT * FROM isee.open_testbatch('{}','{}')".format(board_uuid, station) #print('>>>' + sql) try: res = str(self.__sqlObject.db_execute_query(sql)[0]) diff --git a/test-cli/test_main.py b/test-cli/test_main.py index a44b7d1..6680082 100644 --- a/test-cli/test_main.py +++ b/test-cli/test_main.py @@ -61,7 +61,7 @@ def create_board(): processor_id = genDieid(globalVar.g_mid) print(globalVar.g_mid) print(processor_id) - s = globalVar.g_uuid = psdbObj.create_board(processor_id, model_id, variant, bmac = None) + globalVar.g_uuid = psdbObj.create_board(processor_id, model_id, variant, bmac = None) def createvarlist(testvars): varlist = {} @@ -81,7 +81,7 @@ def testsuite(): command = "suite.addTest({}('{}','execute', varlist))".format(testfunc, testdefname) exec(command) - globalVar.testid_ctl=psdbObj.open_testbatch(globalVar.g_uuid) + globalVar.testid_ctl=psdbObj.open_testbatch(globalVar.g_uuid, globalVar.station) return suite |