[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [test-API][PATCH] balloon_memory: add time break before dump xml



the xml dumped after setMemory is not accurate due to time
delay, so take 10 sec sleep before dump to show the right
xml info

Signed-off-by: Wayne Sun <gsun redhat com>
---
 repos/domain/balloon_memory.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/repos/domain/balloon_memory.py b/repos/domain/balloon_memory.py
index 7051a0a..5bf023a 100644
--- a/repos/domain/balloon_memory.py
+++ b/repos/domain/balloon_memory.py
@@ -209,6 +209,7 @@ def balloon_memory(params):
 
     logger.debug("dump the xml description of guest virtual machine %s" %
                   domname)
+    time.sleep(10)
     dom_xml = domobj.XMLDesc(0)
     logger.debug("the xml definination is %s" % dom_xml)
 
@@ -240,6 +241,7 @@ def balloon_memory(params):
 
     logger.debug("dump the xml description of \
                   guest virtual machine %s" % domname)
+    time.sleep(10)
     dom_xml = domobj.XMLDesc(0)
     logger.debug("the xml definination is %s" % dom_xml)
 
-- 
1.7.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]