提交 0d0cf714 编写于 作者: L Li Jin

balloon_check: Extend sleep time to wait guest reach ready status

original sleep time(90s) is too small, balloon_check get guest used
memory at the very early stage. The value is not correct as it will
increase after all guest application up.
Signed-off-by: NLi Jin <lijin@redhat.com>
上级 9f47fed8
......@@ -25,8 +25,12 @@ class BallooningTest(MemoryBaseTest):
self.vm = env.get_vm(params["main_vm"])
self.session = self.get_session(self.vm)
logging.info("Waiting 90s for guest's applications up")
time.sleep(90)
if self.params.get('os_type') == 'windows':
sleep_time = 180
else:
sleep_time = 90
logging.info("Waiting %d seconds for guest's applications up" % sleep_time)
time.sleep(sleep_time)
self.ori_mem = self.get_vm_mem(self.vm)
self.current_mmem = self.get_ballooned_memory()
if self.current_mmem != self.ori_mem:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册