From 5b30d253879e87c91e71870cff1fa737066c466b Mon Sep 17 00:00:00 2001 From: Anastasiya Semiankevich Date: Wed, 26 Jun 2024 10:21:20 +0300 Subject: [PATCH] chore: add more logging to QT components --- ci/Jenkinsfile.tests-e2e | 6 ++++++ test/e2e/driver/aut.py | 3 +++ test/e2e/driver/server.py | 2 ++ 3 files changed, 11 insertions(+) diff --git a/ci/Jenkinsfile.tests-e2e b/ci/Jenkinsfile.tests-e2e index 1410ffd1bc..47f5fddcce 100644 --- a/ci/Jenkinsfile.tests-e2e +++ b/ci/Jenkinsfile.tests-e2e @@ -82,6 +82,12 @@ pipeline { /* Runtime flag to make testing of the app easier. Switched off: unpredictable app behavior under new tests */ /* STATUS_RUNTIME_TEST_MODE = 'True' */ + + /* Logging rules let you enable or disable logging for categories */ + QT_LOGGING_RULES = '*.warning=true' + + /* Set to a non-zero value to make Qt print out diagnostic information about the each (C++) plugin it tries to load. */ + QT_DEBUG_PLUGINS = 0 } stages { diff --git a/test/e2e/driver/aut.py b/test/e2e/driver/aut.py index e6d9d3552a..206dbde0cc 100644 --- a/test/e2e/driver/aut.py +++ b/test/e2e/driver/aut.py @@ -1,3 +1,5 @@ +import time + import allure import logging import cv2 @@ -117,6 +119,7 @@ class AUT: LOG.info('Stopping AUT: %s', self.path) self.detach_context() local_system.kill_process(self.pid) + time.sleep(1) @allure.step("Start and attach AUT") def launch(self) -> 'AUT': diff --git a/test/e2e/driver/server.py b/test/e2e/driver/server.py index ea8ddbcebc..26d9fd5586 100644 --- a/test/e2e/driver/server.py +++ b/test/e2e/driver/server.py @@ -1,4 +1,5 @@ import logging +import time import typing import configs.testpath @@ -43,6 +44,7 @@ class SquishServer: return LOG.info('Stopping Squish Server with PID: %d', cls.pid) local_system.kill_process(cls.pid) + time.sleep(1) cls.pid = None cls.port = None