zephyr/doc/develop/test
Dmitrii Golovanov f31aab58d5 twister: Add configurable flashing timeout
Use explicit flash command execution timeout at DeviceHandler
instead of the hardcoded value of 60 sec.

When a HW platform executes test cases right after the flash command,
the test case remaining timeout is affected by how much time the flash
operation consumes. Some simulation platforms need to spend significant
amount of time on each 'flash' cycle, usually adding the same delay on
each test case.

This improvement adds two new command line options and device map fields:

  --device-flash-timeout - for the flash operation timeout
  ('flash-timeout' device map field).

  --device-flash-with-test - to indicate that the platform flash
  command also runs a test case, so the overall timeout should be
  calculated as a sum of the flash timeout and the current test case
  timeout to receive all console output from the platform
  ('flash-with-test' device map field).

The device map field values override command line values for the
particular platform where configured.

Default behavior is backward compatible: flash operation fixed timeout
is 60 sec. not including the test case timeout.

Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
2023-04-08 18:37:33 +02:00
..
coverage.rst doc: tests: Fix incorrect table syntax 2023-02-23 07:53:24 -05:00
fixtures.svg
index.rst doc: document the Static Code Analysis (SCA) tool infrastructure 2023-01-27 20:28:58 +09:00
mocking.c
twister.rst twister: Add configurable flashing timeout 2023-04-08 18:37:33 +02:00
ztest_deprecated.rst
ztest.rst doc: testing: Fix testing expectations example 2023-04-04 14:31:52 +02:00