summaryrefslogtreecommitdiff
path: root/test-cli
diff options
context:
space:
mode:
Diffstat (limited to 'test-cli')
-rw-r--r--test-cli/test/helpers/testsrv_db.py4
-rw-r--r--test-cli/test_main.py4
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