autotest/virt-test — pull request #1115 by Hao-Liu (2013-11-26 02:09:29+00:00)
Title: Tcpdump is stopped too early & Backup inactive domain XML

Tcpdump is stopped too early
-------------------------------------------
Tcpdump is required to get ARP ip when calling wait_for_login.
Stopping it before wait_for_login will make wait_for_login hang for 240s

Backup inactive domain XML
-----------------------------------------

* Added option to toggle saving active or inactive domain XML for
libvirt_vm.backup_xml

* Added '--inactive' option when dumping xml for backup when calling
virsh.dumpxml or libvirt_vm.backup_xml. Without this option, the new
domain restored will change its inactive xml like following diff permanently.

* using vmXML.new_from_inactive_xml instead of vmXML.new_from_xml to
backup domain.

```diff
@@ -41,7 +41,9 @@

-
+
+
+

@@ -50,4 +52,5 @@

+

```

Signed-off-by: Hao Liu