提交 e48923ce 编写于 作者: A Aihua Liang

qemu.tests.cfg.balloon_check:add param sleep_before_check

sleep some seconds before check ballooned memory
Signed-off-by: NAihua Liang <aliang@redhat.com>
上级 7b419cb6
......@@ -210,12 +210,13 @@ class BallooningTest(MemoryBaseTest):
elif should_quit == 0:
expect_mem = self.ori_mem
timeout = int(self.params.get("balloon_timeout", 100))
sleep_before_check = int(self.params.get("sleep_before_check", 0))
timeout = int(self.params.get("balloon_timeout", 100)) + sleep_before_check
ballooned_mem = abs(self.ori_mem - expect_mem)
msg = "Wait memory balloon back after "
msg += params_tag['sub_test_after_balloon']
mmem, gmem = utils_misc.wait_for(_memory_check_after_sub_test,
timeout, 0, 5, msg)
timeout, sleep_before_check, 5, msg)
self.current_mmem = mmem
self.current_gmem = gmem
......
......@@ -43,6 +43,7 @@
kill_vm_on_error = yes
reboot = yes
session_need_update = yes
sleep_before_check = 90
- balloon-shutdown:
sub_test_after_balloon = "shutdown"
shutdown_method = shell
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册