From 788929b2100cf8e2fa95ac2a84b204db3740b278 Mon Sep 17 00:00:00 2001 From: Aliaksandr Nikitsin Date: Tue, 3 Feb 2026 13:51:10 +0100 Subject: [PATCH 1/2] start timer only when testrun is in progress --- framework/python/src/core/session.py | 2 ++ framework/python/src/core/testrun.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/framework/python/src/core/session.py b/framework/python/src/core/session.py index 29ce8acb4..be1ca1ca1 100644 --- a/framework/python/src/core/session.py +++ b/framework/python/src/core/session.py @@ -175,6 +175,8 @@ def start(self): self.reset() self._status = TestrunStatus.STARTING self.pause_message = False + + def start_timer(self): self._started = datetime.datetime.now() def get_started(self): diff --git a/framework/python/src/core/testrun.py b/framework/python/src/core/testrun.py index d83e986b5..c77f49bbf 100644 --- a/framework/python/src/core/testrun.py +++ b/framework/python/src/core/testrun.py @@ -491,6 +491,10 @@ def _device_stable(self, mac_addr): LOGGER.info(f'Device with mac address {mac_addr} is ready for testing.') self._set_status(TestrunStatus.IN_PROGRESS) + + # Start testrun timer + self.get_session().start_timer() + self._test_orc.run_test_modules() self._stop_network() From 45d6be03379cdb8152488ac39ace80ca52c358c6 Mon Sep 17 00:00:00 2001 From: Aliaksandr Nikitsin Date: Wed, 4 Feb 2026 18:26:50 +0100 Subject: [PATCH 2/2] pylint --- framework/python/src/core/testrun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/python/src/core/testrun.py b/framework/python/src/core/testrun.py index c77f49bbf..069552320 100644 --- a/framework/python/src/core/testrun.py +++ b/framework/python/src/core/testrun.py @@ -491,7 +491,7 @@ def _device_stable(self, mac_addr): LOGGER.info(f'Device with mac address {mac_addr} is ready for testing.') self._set_status(TestrunStatus.IN_PROGRESS) - + # Start testrun timer self.get_session().start_timer()