qemu/tests/cpuid.py: Fix PEP8 E731

Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 e5560340
...@@ -139,8 +139,10 @@ def run(test, params, env): ...@@ -139,8 +139,10 @@ def run(test, params, env):
vm.resume() vm.resume()
timeout = float(params.get("login_timeout", 240)) timeout = float(params.get("login_timeout", 240))
f = lambda: re.search("==END TEST==", vm.serial_console.get_output()) if not utils_misc.wait_for(lambda:
if not utils_misc.wait_for(f, timeout, 1): re.search("==END TEST==",
vm.serial_console.get_output()),
timeout, 1):
raise error.TestFail("Could not get test complete message.") raise error.TestFail("Could not get test complete message.")
test_output = parse_cpuid_dump(vm.serial_console.get_output()) test_output = parse_cpuid_dump(vm.serial_console.get_output())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册