CONFIG_ZTEST_RETEST_IF_PASSED

Reset the board to test again if the test passed

Type: bool

Help

If the test passed reset the board so it is run again. This may be used as an alternative to manual resets when attempting to reproduce an intermittent failure.

Direct dependencies

ZTEST

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Symbols selected by this symbol

Kconfig definition

At subsys/testsuite/ztest/Kconfig:49

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:36subsys/testsuite/Kconfig:6

Menu path: (Top) → Testing → Zephyr testing framework

config ZTEST_RETEST_IF_PASSED
    bool "Reset the board to test again if the test passed"
    select REBOOT
    depends on ZTEST
    help
      If the test passed reset the board so it is run again.  This
      may be used as an alternative to manual resets when
      attempting to reproduce an intermittent failure.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)