Hi~ Chris,Lucas:
Sorry to respond torename function so late.
I have made a rudiment of rename, and it is based on Chris' enhancement of
xml_utils.
But it seems that the enhancement of xml_utils has not been commited in master
branch,
so I put relative patchs here.
And I write a simple case to test rename, just to help your test.
---
Yu Mingfei (4):
virt.virt_env_process:add paused state of domain for preprocess_vm.
shared.xml_utils: xml operations.(Chris's patch here is to support my
function.)
shared.ElementTree:Add remove function to class ElementTree.
virt.libvirt_xml:Add libvirt's xml operations.
client.tests.libvirt:a testcase to rename a domain(just to help your test).
client/shared/ElementTree.py | 10 +
client/shared/xml_utils.py | 147 ++++++++++++++
client/shared/xml_utils_unittest.py | 213 ++++++++++++++++++++-
client/tests/libvirt/tests/virsh_rename_domain.py | 23 +++
client/virt/base.cfg.sample | 1 +
client/virt/libvirt_xml.py | 42 ++++
client/virt/subtests.cfg.sample | 5 +
client/virt/virt_env_process.py | 3 +
8 files changed, 442 insertions(+), 2 deletions(-)
create mode 100644 client/tests/libvirt/tests/virsh_rename_domain.py
create mode 100644 client/virt/libvirt_xml.py
--
Best Regards
Yu Mingfei
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel