twister: pytest: use test timeout as the default base timeout
The default base timeout for pytest is statically set by the TwisterHarnessConfig class to be 60 seconds. However, sometimes it takes longer than 60s before the app starts to run, especially on emulator/simulator where it takes quite some time to start. So pass the test timeout as the base timeout via pytest command line argument. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
dda519d48c
commit
b2f3d801b4
1 changed files with 4 additions and 0 deletions
|
|
@ -383,6 +383,10 @@ class Pytest(Harness):
|
|||
'--log-cli-format=%(levelname)s: %(message)s'
|
||||
])
|
||||
|
||||
# Use the test timeout as the base timeout for pytest
|
||||
base_timeout = handler.get_test_timeout()
|
||||
command.append(f'--base-timeout={base_timeout}')
|
||||
|
||||
if handler.type_str == 'device':
|
||||
command.extend(
|
||||
self._generate_parameters_for_hardware(handler)
|
||||
|
|
|
|||
Loading…
Reference in a new issue