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:
parent
bc8b7dd6dd
commit
861cab4a2a
1 changed files with 7 additions and 0 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue