提交 3e15869b 编写于 作者: F Feng Yang

Merge pull request #72 from zqad/monotonic

boot_time: Migrate to utils_misc.monotonic_time()
import logging
import time
from autotest.client.shared import error
from virttest import utils_misc
try:
from virttest.staging import utils_memory
......@@ -44,7 +45,7 @@ def run(test, params, env):
vm.create()
vm.verify_alive()
session = vm.wait_for_serial_login(timeout=timeout)
boot_time = time.time() - vm.start_time
boot_time = utils_misc.monotonic_time() - vm.start_monotonic_time
test.write_test_keyval({'result': "%ss" % boot_time})
expect_time = int(params.get("expect_bootup_time", "17"))
logging.info("Boot up time: %ss" % boot_time)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册