mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
tests: qemuxml2argv: report error on ARG_* collisions
* ARG_CAPS_ARCH must be specified with ARG_CAPS_VER * ARG_QEMU_CAPS shouldn't be specified with ARG_CAPS_* Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
bb66ff2677
commit
6fa656384e
@ -688,6 +688,18 @@ testInfoSetArgs(struct testInfo *info,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!!capsarch ^ !!capsver) {
|
||||||
|
fprintf(stderr, "ARG_CAPS_ARCH and ARG_CAPS_VER "
|
||||||
|
"must be specified together.\n");
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (qemuCaps && (capsarch || capsver)) {
|
||||||
|
fprintf(stderr, "ARG_QEMU_CAPS can not be combined with ARG_CAPS_ARCH "
|
||||||
|
"or ARG_CAPS_VER\n");
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
if (!qemuCaps && capsarch && capsver) {
|
if (!qemuCaps && capsarch && capsver) {
|
||||||
bool stripmachinealiases = false;
|
bool stripmachinealiases = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user