]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: domainsnapshotxml2xml: Remove testing with allowed format detection
authorPeter Krempa <pkrempa@redhat.com>
Wed, 7 Mar 2018 09:44:55 +0000 (10:44 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 13 Mar 2018 12:54:06 +0000 (13:54 +0100)
We have a test of the domain XML that allows format detection, so
there's no need to do it for snapshot XMLs where the parameter would
influence the domain XML portion.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
tests/domainsnapshotxml2xmlout/disk_snapshot_redefine.xml
tests/domainsnapshotxml2xmlout/external_vm_redefine.xml
tests/domainsnapshotxml2xmlout/full_domain.xml
tests/domainsnapshotxml2xmlout/metadata.xml
tests/domainsnapshotxml2xmltest.c

index a6eb5df98775cbb0b9532150f9c4fb8ace936e8a..a9adbdc2a3e6efb3afcd47a60871bcb4deae4a23 100644 (file)
     <devices>
       <emulator>/usr/bin/qemu-system-i686</emulator>
       <disk type='block' device='disk'>
+        <driver name='qemu' type='raw'/>
         <source dev='/dev/HostVG/QEMUGuest1'/>
         <target dev='hda' bus='ide'/>
         <address type='drive' controller='0' bus='0' target='0' unit='0'/>
       </disk>
       <disk type='block' device='disk'>
+        <driver name='qemu' type='raw'/>
         <source dev='/dev/HostVG/QEMUGuest2'/>
         <target dev='hdb' bus='ide'/>
         <address type='drive' controller='0' bus='1' target='0' unit='0'/>
       </disk>
       <disk type='block' device='disk'>
+        <driver name='qemu' type='raw'/>
         <source dev='/dev/HostVG/QEMUGuest3'/>
         <target dev='hdc' bus='ide'/>
         <address type='drive' controller='0' bus='2' target='0' unit='0'/>
       </disk>
       <disk type='block' device='disk'>
+        <driver name='qemu' type='raw'/>
         <source dev='/dev/HostVG/QEMUGuest4'/>
         <target dev='hdd' bus='ide'/>
         <address type='drive' controller='0' bus='3' target='0' unit='0'/>
       </disk>
       <disk type='block' device='disk'>
+        <driver name='qemu' type='raw'/>
         <source dev='/dev/HostVG/QEMUGuest5'/>
         <target dev='hde' bus='ide'/>
         <address type='drive' controller='0' bus='4' target='0' unit='0'/>
       </disk>
       <disk type='block' device='disk'>
+        <driver name='qemu' type='raw'/>
         <source dev='/dev/HostVG/QEMUGuest6'/>
         <target dev='hdf' bus='ide'/>
         <address type='drive' controller='0' bus='5' target='0' unit='0'/>
index d620c3b1165f3af0678bb65b6814197adcf7f113..415fa0aed3efd6520dba2c04569e3051f2d9afc4 100644 (file)
@@ -31,6 +31,7 @@
     <devices>
       <emulator>/usr/bin/qemu-system-i686</emulator>
       <disk type='block' device='disk' snapshot='no'>
+        <driver name='qemu' type='raw'/>
         <source dev='/dev/HostVG/QEMUGuest1'/>
         <target dev='hda' bus='ide'/>
         <address type='drive' controller='0' bus='0' target='0' unit='0'/>
index a943d174f8f913b826c7a503a071229672950938..ff3f08950b67ae21b793dafa6cf04a40e92066f5 100644 (file)
@@ -24,6 +24,7 @@
     <devices>
       <emulator>/usr/bin/qemu-system-i686</emulator>
       <disk type='block' device='disk'>
+        <driver name='qemu' type='raw'/>
         <source dev='/dev/HostVG/QEMUGuest1'/>
         <target dev='hda' bus='ide'/>
         <address type='drive' controller='0' bus='0' target='0' unit='0'/>
index d09444a76dd81c9807478b54949461b152fdb5b5..1e50494cb513d6526ab19b74871b712bcd807b7d 100644 (file)
@@ -28,6 +28,7 @@
     <devices>
       <emulator>/usr/bin/qemu-system-i686</emulator>
       <disk type='block' device='disk'>
+        <driver name='qemu' type='raw'/>
         <source dev='/dev/HostVG/QEMUGuest1'/>
         <target dev='hda' bus='ide'/>
         <address type='drive' controller='0' bus='0' target='0' unit='0'/>
index 9ddd1eca7f5e914a215e656133a88e26d6b7d919..5ea0f325ded593ee429aca9a7d8d9d87cd2930cd 100644 (file)
@@ -156,9 +156,6 @@ mymain(void)
     if (qemuTestDriverInit(&driver) < 0)
         return EXIT_FAILURE;
 
-    /* TODO: test with format probing disabled too */
-    driver.config->allowDiskFormatProbing = true;
-
     if (VIR_ALLOC(testSnapshotXMLVariableLineRegex) < 0)
         goto cleanup;