示例#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)