summaryrefslogtreecommitdiff
path: root/test-cli/test/helpers/testsrv_db.py
diff options
context:
space:
mode:
authorHector Fernandez <hector@iatec.biz>2020-07-07 14:09:59 +0200
committerHector Fernandez <hector@iatec.biz>2020-07-07 14:09:59 +0200
commit9f89f02e7d6e2a3208b0b85d2567ebffd2515e09 (patch)
treebcf4dee36e9413513eb67a1745160668703a2e81 /test-cli/test/helpers/testsrv_db.py
parent43f688b414ea182cd9baf06ee83df072c3f563f5 (diff)
downloadboard-9f89f02e7d6e2a3208b0b85d2567ebffd2515e09.zip
board-9f89f02e7d6e2a3208b0b85d2567ebffd2515e09.tar.gz
board-9f89f02e7d6e2a3208b0b85d2567ebffd2515e09.tar.bz2
New way to check preivous state before changing to a new one. Solved some problems with audio test.
Diffstat (limited to 'test-cli/test/helpers/testsrv_db.py')
-rw-r--r--test-cli/test/helpers/testsrv_db.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test-cli/test/helpers/testsrv_db.py b/test-cli/test/helpers/testsrv_db.py
index 7eeefb3..9579e7e 100644
--- a/test-cli/test/helpers/testsrv_db.py
+++ b/test-cli/test/helpers/testsrv_db.py
@@ -197,7 +197,9 @@ class TestSrv_Database(object):
sql = "SELECT station.setmystate('{}', '{}', NULL)".format(newstate, station)
# print('>>>' + sql)
try:
- self.__sqlObject.db_execute_query(sql)
+ res = self.__sqlObject.db_execute_query(sql)
+ # print(res)
+ return res[0][0]
except Exception as err:
r = find_between(str(err), '#', '#')
# print(r)