Ejemplo n.º 1
0
def test_local_watchdog(lib_env, watchdog=None):
    """
    Test local watchdog device by triggering it. System reset is expected. If
    watchdog is not specified, available watchdog will be used if there is only
    one.

    lib_env LibraryEnvironment
    watchdog string -- watchdog to trigger
    """
    lib_env.report_processor.report(reports.system_will_reset())
    sbd.test_watchdog(lib_env.cmd_runner(), watchdog)
Ejemplo n.º 2
0
def test_local_watchdog(lib_env, watchdog=None):
    """
    Test local watchdog device by triggering it. System reset is expected. If
    watchdog is not specified, available watchdog will be used if there is only
    one.

    lib_env LibraryEnvironment
    watchdog string -- watchdog to trigger
    """
    lib_env.report_processor.report(reports.system_will_reset())
    sbd.test_watchdog(lib_env.cmd_runner(), watchdog)