scripts: twister: extend test timeout to get gcov data

When coverage is enabled, gather console logs longer
to receive gcov data which are send after test output.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
This commit is contained in:
Piotr Kosycarz 2023-10-11 21:11:14 +02:00 committed by Carles Cufí
commit 861cab4a2a

View file

@ -358,6 +358,13 @@ class DeviceHandler(Handler):
"""
super().__init__(instance, type_str)
def get_test_timeout(self):
timeout = super().get_test_timeout()
if self.options.coverage:
# wait more for gcov data to be dumped on console
timeout += 120
return timeout
def monitor_serial(self, ser, halt_event, harness):
log_out_fp = open(self.log, "wb")