提交 2700779f 编写于 作者: P Peter Krempa

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: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 4fcea23e
...@@ -457,6 +457,9 @@ testQemuHotplugCpuPrepare(const char *test, ...@@ -457,6 +457,9 @@ testQemuHotplugCpuPrepare(const char *test,
if (fail) if (fail)
qemuMonitorTestAllowUnusedCommands(data->mon); qemuMonitorTestAllowUnusedCommands(data->mon);
if (!data->modern)
qemuMonitorTestSkipDeprecatedValidation(data->mon, true);
priv->mon = qemuMonitorTestGetMonitor(data->mon); priv->mon = qemuMonitorTestGetMonitor(data->mon);
virObjectUnlock(priv->mon); virObjectUnlock(priv->mon);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册