thanks , It is clear and better I will update
On 28/03/13 17:05, Yu Mingfei wrote:
New configuration:(hope to be helpful :) )
---
libvirt/virsh_change_media.cfg | 73
++++++++++++++++++++++++++++++++++++++++
1 files changed, 73 insertions(+), 0 deletions(-)
create mode 100755 libvirt/virsh_change_media.cfg
diff --git a/libvirt/virsh_change_media.cfg
b/libvirt/virsh_change_media.cfg
new file mode 100755
index 0000000..49cf712
--- /dev/null
+++ b/libvirt/virsh_change_media.cfg
@@ -0,0 +1,73 @@
+- virsh_change_media:
+ type = virsh_change_media
+ old_iso = "change_media_old.iso"
+ new_iso = "change_media_new.iso"
+ update_iso_xml = "update_iso.xml"
+ disk_device = "hdc"
+ vm_ref = "name"
+ init_cdrom = "''"
+ libvirtd = "on"
+ init_iso = "change_media_old.iso"
+ change_media_source =
+ variants:
+ - positive_test:
+ status_error = "no"
+ variants:
+ - running_guest:
+ start_vm = "yes"
+ - shutoff_guest:
+ start_vm = "no"
+ variants:
+ - options:
+ variants:
+ - none:
+ options = " "
+ - current:
+ options = "--current"
+ - live:
+ no shutoff_guest
+ options = "--live"
+ - force:
+ options = "--force"
+ - config:
+ options = "--config"
+ variants:
+ - eject:
+ action = "--eject "
+ check_file =
+ - insert:
+ change_media_source = "change_media_old.iso"
+ action = "--insert "
+ check_file = "old"
+ init_iso =
+ - update:
+ change_media_source = "change_media_new.iso"
+ action = "--update "
+ check_file = "new"
+ - negative_test:
+ status_error = "yes"
+ start_vm = "no"
+ variants:
+ - no_option:
+ only insert
+ options = " "
+ - no_name:
+ vm_ref = " "
+ - unexpect_option:
+ vm_ref = "\#"
+ - invalid_option:
+ options = "xyz"
+ - with_libvirtd_stop:
+ libvirtd = "off"
+ - shutoff_guest_with_live:
+ options = "--live"
+ variants:
+ - eject:
+ action = "--eject "
+ options = "--current"
+ - insert:
+ action = "--insert "
+ options = "--current"
+ - update:
+ action = "--update "
+ options = "--current"
-- 1.7.1
--
Best Regards!
Wenlong Huang
IRC Account: wenlong
Phone: 62608117 / 15011214521
_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel