From 7490324bc98248fc82be814920e2deff4114acc8 Mon Sep 17 00:00:00 2001 From: Manel Caro Date: Wed, 4 Mar 2020 19:38:10 +0100 Subject: Added station --- test-cli/test/helpers/testsrv_db.py | 4 ++-- 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 -- cgit v1.1