From 0badef8091d737e465f75c8a1c011c9bb996bf77 Mon Sep 17 00:00:00 2001 From: Grzegorz Chwierut Date: Mon, 2 Oct 2023 16:12:54 +0200 Subject: [PATCH] twister: Fix missing timeout in handler class In PR #62947 a timeout variable was replaced with a method, but this timeout was used in another place to start pytest subprogram. This commit provides a fix. Signed-off-by: Grzegorz Chwierut --- scripts/pylib/twister/twisterlib/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pylib/twister/twisterlib/runner.py b/scripts/pylib/twister/twisterlib/runner.py index ef41084cdd..fbffa817bb 100644 --- a/scripts/pylib/twister/twisterlib/runner.py +++ b/scripts/pylib/twister/twisterlib/runner.py @@ -1052,7 +1052,7 @@ class ProjectBuilder(FilterBuilder): harness = HarnessImporter.get_harness(instance.testsuite.harness.capitalize()) harness.configure(instance) if isinstance(harness, Pytest): - harness.pytest_run(instance.handler.timeout) + harness.pytest_run(instance.handler.get_test_timeout()) else: instance.handler.handle(harness)