提交 82720929 编写于 作者: X Xu Tian

Merge pull request #630 from PandaWei/watchdog

watchdog: don't boot up VM for 'check_watchdog_support'
......@@ -14,8 +14,6 @@
watchdog_device_type = ib700
dmesg_info = "ib700wdt.*init"
variants:
- watchdog_device_support:
test_type = check_watchdog_support
- boot_with_watchdog:
test_type = guest_boot_with_watchdog
- magic_close:
......
......@@ -125,7 +125,6 @@ def run(test, params, env):
logging.info("Watchdog action '%s' come into effect." %
watchdog_action)
# test case
def check_watchdog_support():
"""
check the host qemu-kvm support watchdog device
......@@ -151,10 +150,10 @@ def run(test, params, env):
else:
logging.info("The host support watchdog device type is: '%s'"
% watchdog_device)
raise error.TestFail("Host not support watchdog device type %s "
% watchdog_device_type)
raise error.TestNAError("watdog %s isn't supported!"
% watchdog_device_type)
else:
raise error.TestFail("No watchdog device support in the host!")
raise error.TestNAError("No watchdog device supported by the host!")
def guest_boot_with_watchdog():
"""
......@@ -282,6 +281,8 @@ def run(test, params, env):
# main procedure
test_type = params.get("test_type")
check_watchdog_support()
error.context("'%s' test starting ... " % test_type, logging.info)
error.context("Boot VM with WDT(Device:'%s', Action:'%s'),and try to login"
% (watchdog_device_type, watchdog_action), logging.info)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册