mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-03 12:55:45 +00:00
qemusecuritytest: Honour EXIT_AM_SKIP
There is a case where qemusecuritytest is skipped - on MacOS and
MinGW. In such case, EXIT_AM_SKIP should be returned. However,
my recent patch of 5d99b157bc
completely missed that and made the
test return EXIT_FAILURE even though the test exited early
without performing any test case.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
88b38f685d
commit
a7b0026e46
@ -143,15 +143,13 @@ mymain(void)
|
||||
#endif
|
||||
int ret = 0;
|
||||
|
||||
if (!virSecurityXATTRNamespaceDefined())
|
||||
return EXIT_AM_SKIP;
|
||||
|
||||
if (virInitialize() < 0 ||
|
||||
qemuTestDriverInit(&driver) < 0)
|
||||
return -1;
|
||||
|
||||
if (!virSecurityXATTRNamespaceDefined()) {
|
||||
ret = EXIT_AM_SKIP;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
/* Now fix the secdriver */
|
||||
virObjectUnref(driver.securityManager);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user