From: Peter Krempa Date: Wed, 5 Jan 2022 21:46:50 +0000 (+0100) Subject: qemuxml2argvtest: Convert 'missing-machine' to DO_TEST_CAPS_LATEST X-Git-Tag: v8.0.0-rc1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dcbaa6ec8a7191e64f73f4d3ac77571f8367304;p=thirdparty%2Flibvirt.git qemuxml2argvtest: Convert 'missing-machine' to DO_TEST_CAPS_LATEST 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 Reviewed-by: Ján Tomko --- diff --git a/tests/qemuxml2argvdata/missing-machine.err b/tests/qemuxml2argvdata/missing-machine.err deleted file mode 100644 index e13b3c5145..0000000000 --- a/tests/qemuxml2argvdata/missing-machine.err +++ /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 index 0000000000..ba2e160f50 --- /dev/null +++ b/tests/qemuxml2argvdata/missing-machine.x86_64-latest.err @@ -0,0 +1 @@ +unsupported configuration: Emulator '/usr/bin/qemu-system-x86_64' does not support arch 'alpha' diff --git a/tests/qemuxml2argvdata/missing-machine.xml b/tests/qemuxml2argvdata/missing-machine.xml index 30735b503a..d9935d3338 100644 --- a/tests/qemuxml2argvdata/missing-machine.xml +++ b/tests/qemuxml2argvdata/missing-machine.xml @@ -14,7 +14,7 @@ restart destroy - /usr/bin/qemu-system-i386 + /usr/bin/qemu-system-x86_64 diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 34a2efb6cf..cc67d806e4 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -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");