# HG changeset patch
# User Deepti B. Kalakeri<deeptik(a)linux.vnet.ibm.com>
# Date 1249904367 25200
# Node ID d6774b718374366d94075401399c2a4fe0a67590
# Parent 51a906dbd4082a5f1c8f25566c235d296fb30a2b
[TEST] Fixing CSMigrationJobIndication/01*py .
Testd with RHEL5.3 and current sources.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 51a906dbd408 -r d6774b718374
suites/libvirt-cim/cimtest/ComputerSystemMigrationJobIndication/01_csmig_ind_for_offline_mig.py
---
a/suites/libvirt-cim/cimtest/ComputerSystemMigrationJobIndication/01_csmig_ind_for_offline_mig.py Thu
Aug 06 15:32:52 2009 -0700
+++
b/suites/libvirt-cim/cimtest/ComputerSystemMigrationJobIndication/01_csmig_ind_for_offline_mig.py Mon
Aug 10 04:39:27 2009 -0700
@@ -78,13 +78,14 @@
if clean_net != True:
return
- # clean the networkpool created on the remote machine
- target_net_list = net_list(t_sysname, virt)
- if target_net_list != None and default_network_name in target_net_list:
- ret_value = destroy_netpool(t_sysname, virt, default_network_name)
- if ret_value != PASS:
- logger.info("Unable to destroy networkpool '%s' on
'%s'",
- default_network_name, t_sysname)
+ if t_sysname != "localhost" and t_sysname not in s_sysname:
+ # clean the networkpool created on the remote machine
+ target_net_list = net_list(t_sysname, virt)
+ if target_net_list != None and default_network_name in target_net_list:
+ ret_value = destroy_netpool(t_sysname, virt, default_network_name)
+ if ret_value != PASS:
+ logger.info("Unable to destroy networkpool '%s' on
'%s'",
+ default_network_name, t_sysname)
# Remote Migration not Successful, clean the domain on src machine
src_list = domain_list(s_sysname, virt)