summaryrefslogtreecommitdiff
path: root/tests/qemucommandutiltest.c
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2020-05-14 09:41:48 +0200
committerPeter Krempa <pkrempa@redhat.com>2020-05-20 09:41:57 +0200
commit220751091f7a23791134b653306dd460524d8a6d (patch)
tree0afc2849cc69a196a30cd176fe58cb5720512024 /tests/qemucommandutiltest.c
parent54e4328295d0bd2859bcae77379b792dfe2012ec (diff)
downloadlibvirt-220751091f7a23791134b653306dd460524d8a6d.tar.gz
virQEMUBuildCommandLineJSON: Allow skipping certain keys
Allow reusing this for formatting of netdev_add arguments into -netdev. We need to be able to skip the 'type' property as it's used without the prefix by our generator. Add infrastructure which allows skipping property with a specific name. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qemucommandutiltest.c')
-rw-r--r--tests/qemucommandutiltest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemucommandutiltest.c b/tests/qemucommandutiltest.c
index c5b3e7b735..923776e642 100644
--- a/tests/qemucommandutiltest.c
+++ b/tests/qemucommandutiltest.c
@@ -47,7 +47,7 @@ testQemuCommandBuildFromJSON(const void *opaque)
return -1;
}
- if (virQEMUBuildCommandLineJSON(val, &buf, data->arrayfunc) < 0) {
+ if (virQEMUBuildCommandLineJSON(val, &buf, NULL, data->arrayfunc) < 0) {
fprintf(stderr,
"\nvirQEMUBuildCommandlineJSON failed process JSON:\n%s\n",
data->props);