On 08/01/2012 06:09 AM, Yu Mingfei wrote:
Hi Chris,Lucas:
Thanks your comments of v1 patchset.
In fact, I mistaked the value "vm_xml.name".^_^
But I have read xml_utils.py and ElementTree.py carefully.
I find that only class _ElementInterface has function remove(...),
but I can not get it from ElementTree, so as class XMLBase.
Since XMLBase inherit ElementTree, I move remove() to class XMLBase.
Is this ok?
In addition, I still use libvirt_vm.py as virsh because the work of
moving virsh_xxx()
is underway.
Yu Mingfei (2):
shared.xml_utils:add remove function to XMLBase.
virt.libvirt_xml:operations of libvirt xmlfile.
client.tests.libvirt:a testcase to rename a domain(just to help your
test).
client/shared/xml_utils.py | 10 +++++
client/tests/libvirt/tests/virsh_rename_domain.py | 25 ++++++++++++
client/virt/libvirt_xml.py | 42 +++++++++++++++++++++
client/virt/subtests.cfg.sample | 5 ++
4 files changed, 82 insertions(+), 0 deletions(-)
create mode 100644 client/tests/libvirt/tests/virsh_rename_domain.py
create mode 100644 client/virt/libvirt_xml.py
Yu,
Okay, I fixed up the few things, and replied (above) with new patches.
Let me know if they look good / work for you. Thanks.
--
Chris Evich, RHCA, RHCE, RHCDS, RHCSS
Quality Assurance Engineer
e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel