From: Peter Krempa Date: Wed, 29 Apr 2020 17:20:00 +0000 (+0200) Subject: testQemuHotplugCpuPrepare: Allow deprecated commands for non-modern cpu hotplug test X-Git-Tag: v6.4.0-rc1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2700779f6fd0164169969572f8a1db8fb8f32e10;p=thirdparty%2Flibvirt.git testQemuHotplugCpuPrepare: Allow deprecated commands for non-modern cpu hotplug test We have a few cases validating that the code behaves correctly in pre-modern hotplug era. This is controled by the 'modern' flag for the test. Since 'cpu-add' command is now deprecated in qemu, there is a modern replacement for it, and the test output is checked against expected commands we can skip schema validation for the legacy command. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/tests/qemuhotplugtest.c b/tests/qemuhotplugtest.c index 6f0bc98b43..1843e79d77 100644 --- a/tests/qemuhotplugtest.c +++ b/tests/qemuhotplugtest.c @@ -457,6 +457,9 @@ testQemuHotplugCpuPrepare(const char *test, if (fail) qemuMonitorTestAllowUnusedCommands(data->mon); + if (!data->modern) + qemuMonitorTestSkipDeprecatedValidation(data->mon, true); + priv->mon = qemuMonitorTestGetMonitor(data->mon); virObjectUnlock(priv->mon);