]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
testQemuHotplugCpuPrepare: Allow deprecated commands for non-modern cpu hotplug test
authorPeter Krempa <pkrempa@redhat.com>
Wed, 29 Apr 2020 17:20:00 +0000 (19:20 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 20 May 2020 06:53:29 +0000 (08:53 +0200)
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 <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuhotplugtest.c

index 6f0bc98b43688e59caf9397d1c00dc86ea40386d..1843e79d77fa3e77ed10f7fc442080e1d35d6e06 100644 (file)
@@ -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);