예제 #1
0
파일: sbd.py 프로젝트: miladalipour99/pcs
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)
예제 #2
0
파일: sbd.py 프로젝트: tomjelinek/pcs
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)