mirror of https://gitee.com/openkylin/libvirt.git
qemuxml2(argv|xml)test: Don't exit early when testQemuInfoSetArgs fails
Set the return code to failure and continue testing. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
e4332faf39
commit
a842de3ef7
|
@ -904,7 +904,7 @@ mymain(void)
|
|||
info.qapiSchemaCache = qapiSchemaCache; \
|
||||
if (testQemuInfoSetArgs(&info, capscache, capslatest, \
|
||||
__VA_ARGS__, ARG_END) < 0) \
|
||||
return EXIT_FAILURE; \
|
||||
ret = -1; \
|
||||
testInfoSetPaths(&info, _suffix); \
|
||||
if (virTestRun("QEMU XML-2-ARGV " _name _suffix, \
|
||||
testCompareXMLToArgv, &info) < 0) \
|
||||
|
|
|
@ -134,7 +134,7 @@ mymain(void)
|
|||
ARG_END) < 0 || \
|
||||
qemuTestCapsCacheInsert(driver.qemuCapsCache, info.qemuCaps) < 0) { \
|
||||
VIR_TEST_DEBUG("Failed to generate test data for '%s'", _name); \
|
||||
return -1; \
|
||||
ret = -1; \
|
||||
} \
|
||||
\
|
||||
if (when & WHEN_INACTIVE) { \
|
||||
|
|
Loading…
Reference in New Issue