]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuxml2argvtest: Convert 'missing-machine' to DO_TEST_CAPS_LATEST
authorPeter Krempa <pkrempa@redhat.com>
Wed, 5 Jan 2022 21:46:50 +0000 (22:46 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 7 Jan 2022 08:25:14 +0000 (09:25 +0100)
Emulator binary change is needed to use the latest caps properly. The
comment is no longer needed, the expected error is recorded in the 'err'
file.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2argvdata/missing-machine.err [deleted file]
tests/qemuxml2argvdata/missing-machine.x86_64-latest.err [new file with mode: 0644]
tests/qemuxml2argvdata/missing-machine.xml
tests/qemuxml2argvtest.c

diff --git a/tests/qemuxml2argvdata/missing-machine.err b/tests/qemuxml2argvdata/missing-machine.err
deleted file mode 100644 (file)
index e13b3c5..0000000
+++ /dev/null
@@ -1 +0,0 @@
-unsupported configuration: Emulator '/usr/bin/qemu-system-i386' does not support arch 'alpha'
diff --git a/tests/qemuxml2argvdata/missing-machine.x86_64-latest.err b/tests/qemuxml2argvdata/missing-machine.x86_64-latest.err
new file mode 100644 (file)
index 0000000..ba2e160
--- /dev/null
@@ -0,0 +1 @@
+unsupported configuration: Emulator '/usr/bin/qemu-system-x86_64' does not support arch 'alpha'
index 30735b503a06d28b1210fe24c601d13701a6259d..d9935d3338941c1c86e94c1a7d6e9fc0d2b800c0 100644 (file)
@@ -14,7 +14,7 @@
   <on_reboot>restart</on_reboot>
   <on_crash>destroy</on_crash>
   <devices>
-    <emulator>/usr/bin/qemu-system-i386</emulator>
+    <emulator>/usr/bin/qemu-system-x86_64</emulator>
     <disk type='block' device='disk'>
       <source dev='/dev/HostVG/QEMUGuest1'/>
       <target dev='hda' bus='ide'/>
index 34a2efb6cf41dae7b9a6fe64eab4a88c9cc4b336..cc67d806e40e6ababfac02bc900f1deae8fcbc92 100644 (file)
@@ -3273,16 +3273,7 @@ mymain(void)
     DO_TEST("sparc-minimal",
             QEMU_CAPS_SCSI_NCR53C90);
 
-    /* VM XML has invalid arch/ostype/virttype combo, but the SKIP flag
-     * will avoid the error during parse. This will cause us to fill in
-     * the missing machine type using the i386 binary, despite it being
-     * the wrong binary for the arch. We expect to get a failure about
-     * bad arch later when creating the pretend command.
-     */
-    DO_TEST_FULL("missing-machine", "",
-                 ARG_FLAGS, FLAG_EXPECT_FAILURE,
-                 ARG_PARSEFLAGS, VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE,
-                 ARG_END);
+    DO_TEST_CAPS_LATEST_PARSE_ERROR("missing-machine");
 
     DO_TEST_CAPS_VER("name-escape", "2.11.0");
     DO_TEST_CAPS_LATEST("name-escape");