From ce7885cf9cb5b4e232ac8659eaaf82591d14eaa9 Mon Sep 17 00:00:00 2001 From: Manel Caro Date: Fri, 2 Oct 2020 14:10:48 +0200 Subject: fix database connection message --- test-cli/test_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test-cli') diff --git a/test-cli/test_main.py b/test-cli/test_main.py index ebaf0d9..7bf0c34 100644 --- a/test-cli/test_main.py +++ b/test-cli/test_main.py @@ -37,7 +37,6 @@ from test.helpers.qrreader import QRReader from test.helpers.cmdline import LinuxKernelCmd from test.helpers.amper import Amper from test.enums.StationStates import StationStates -from test.helpers.mydebugger import sentdebugmessage import xml.etree.ElementTree as XMLParser from test.helpers.iseelogger import logObj from test.helpers.utils import str2bool @@ -403,7 +402,7 @@ if __name__ == "__main__": # Error execute_station_error("Cannot open DB connection") else: - logObj.getlogger().debug("database connection failed: {}".format(psdbObj.getConfig())) + logObj.getlogger().debug("database connection ok: {}".format(psdbObj.getConfig())) # get station name globalVar.station = socket.gethostname() @@ -419,6 +418,7 @@ if __name__ == "__main__": # Check if current state is "WAIT_TEST_START". if not, waits here + # if xmlObj.getKeyVal("test_main", "overrideCheckWaitStart", "0") == "1": check_first_state() # Change state to "TESTS_CHECKING_ENV" -- cgit v1.1