The command was replaced with 'query-cpus-fast' which is always used
when detected by the capabilities so we can allow our test usage of
the deprecated command even if it will be removed from the schema.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
if (!(test = qemuMonitorTestNewSchema(xmlopt, data->schema)))
return -1;
+ qemuMonitorTestSkipDeprecatedValidation(test, true);
+
if (qemuMonitorTestAddItem(test, "query-cpus",
"{"
" \"return\": ["
queryHotpluggableStr) < 0)
goto cleanup;
- if (data->fast)
+ if (data->fast) {
queryCpusFunction = "query-cpus-fast";
- else
+ } else {
queryCpusFunction = "query-cpus";
+ qemuMonitorTestSkipDeprecatedValidation(test, true);
+ }
if (qemuMonitorTestAddItem(test, queryCpusFunction, queryCpusStr) < 0)
goto cleanup;