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

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

 



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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]