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 <grzegorz.chwierut@nordicsemi.no>
This commit is contained in:
Grzegorz Chwierut 2023-10-02 16:12:54 +02:00 committed by Fabio Baltieri
parent 6de57d0985
commit 0badef8091

View file

@ -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)