From a23bf9ea70355a9aff31cb40f07c8adf75753fde Mon Sep 17 00:00:00 2001 From: Lucas Meneghel Rodrigues Date: Wed, 11 Feb 2015 19:25:52 -0200 Subject: [PATCH] qemu/tests/cpuid.py: Fix PEP8 E731 Signed-off-by: Lucas Meneghel Rodrigues --- qemu/tests/cpuid.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qemu/tests/cpuid.py b/qemu/tests/cpuid.py index dc638bdd..e02e78d9 100644 --- a/qemu/tests/cpuid.py +++ b/qemu/tests/cpuid.py @@ -139,8 +139,10 @@ def run(test, params, env): vm.resume() timeout = float(params.get("login_timeout", 240)) - f = lambda: re.search("==END TEST==", vm.serial_console.get_output()) - if not utils_misc.wait_for(f, timeout, 1): + if not utils_misc.wait_for(lambda: + re.search("==END TEST==", + vm.serial_console.get_output()), + timeout, 1): raise error.TestFail("Could not get test complete message.") test_output = parse_cpuid_dump(vm.serial_console.get_output()) -- GitLab