qemu/balloon_stress.py: Fix PEP8 E731

Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 d5e3ca08
......@@ -58,8 +58,8 @@ def run(test, params, env):
# need to wait for wmplayer loading remote video
time.sleep(float(params.get("loading_timeout", 60)))
check_playing_cmd = params["check_playing_cmd"]
fuc = lambda: session.cmd_status(check_playing_cmd) == 0
running = utils.wait_for(fuc, first=5.0, timeout=600)
running = utils.wait_for(lambda: session.cmd_status(check_playing_cmd) == 0,
first=5.0, timeout=600)
if not running:
raise error.TestError("Video do not playing")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册