summaryrefslogtreecommitdiff
path: root/test-cli/test/helpers/testsrv_db.py
diff options
context:
space:
mode:
authorManel Caro <mcaro@iseebcn.com>2020-07-31 13:58:41 +0200
committerManel Caro <mcaro@iseebcn.com>2020-07-31 13:58:41 +0200
commit227d9783fe8327b84ac3b0e032f012ba144816f8 (patch)
tree47ad5279c7593d6f2db4b7167fe0be9266f74203 /test-cli/test/helpers/testsrv_db.py
parentd46bce422fd03cd57d1ba336361da17d6efb48db (diff)
downloadboard-227d9783fe8327b84ac3b0e032f012ba144816f8.zip
board-227d9783fe8327b84ac3b0e032f012ba144816f8.tar.gz
board-227d9783fe8327b84ac3b0e032f012ba144816f8.tar.bz2
IGEP0048: added plc test
Diffstat (limited to 'test-cli/test/helpers/testsrv_db.py')
-rw-r--r--test-cli/test/helpers/testsrv_db.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-cli/test/helpers/testsrv_db.py b/test-cli/test/helpers/testsrv_db.py
index c2b2276..556c246 100644
--- a/test-cli/test/helpers/testsrv_db.py
+++ b/test-cli/test/helpers/testsrv_db.py
@@ -132,6 +132,19 @@ class TestSrv_Database(object):
# print(r)
return None
+
+ def get_plc_macaddr(self, board_uuid):
+ sql = "SELECT * FROM isee.f_get_plcmac(\'{}\')".format(board_uuid)
+ # print('>>>' + sql)
+ try:
+ res = self.__sqlObject.db_execute_query(sql)
+ return res, ''
+ except Exception as err:
+ r = find_between(str(err), '#', '#')
+ print(r)
+ return None, r
+
+
def get_board_macaddr(self, board_uuid):
sql = "SELECT * FROM isee.f_get_board_macaddr('{}')".format(board_uuid)
# print('>>>' + sql)