[Libvirt-cim] [PATCH] [TEST] Fix ResourceAllocationFromPool.01, use existing Networkpool instead of creating a new one

yunguol at cn.ibm.com yunguol at cn.ibm.com
Wed Aug 6 02:47:09 UTC 2008


# HG changeset patch
# User Guolian Yun <yunguol at cn.ibm.com>
# Date 1217990822 25200
# Node ID 50d6db48dd8f95bf84644dbb2f120a89241151c7
# Parent  3add446da91108d419ce8adae434ebc78039fa34
[TEST] Fix ResourceAllocationFromPool.01, use existing Networkpool instead of creating a new one

Signed-off-by: Guolian Yun <yunguol at cn.ibm.com>

diff -r 3add446da911 -r 50d6db48dd8f suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py
--- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py	Tue Aug 05 08:59:29 2008 -0700
+++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py	Tue Aug 05 19:47:02 2008 -0700
@@ -121,7 +121,8 @@ def main():
         vsxml.undefine(options.ip)
         return status
 
-    status, test_network = create_netpool_conf(options.ip, options.virt)
+    status, test_network = create_netpool_conf(options.ip, options.virt,
+                                               use_existing=True)
     if status != PASS:
         cleanup_restore(options.ip, options.virt)
         vsxml.undefine(options.ip)
@@ -152,7 +153,6 @@ def main():
             break
 
     cleanup_restore(options.ip, options.virt)
-    destroy_netpool(options.ip, options.virt, test_network)
     vsxml.undefine(options.ip)
     return status 
         




More information about the Libvirt-cim mailing list