mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
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 <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
4fcea23e6c
commit
2700779f6f
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user