mirror of https://gitee.com/openkylin/libvirt.git
tests: Set up two more overrides for root builders
There are two more places after commit 3865941b
that need to be adapted
in order to get rid of some test failures when building as root.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
31354b5b32
commit
42dc7a471d
|
@ -135,6 +135,8 @@ mymain(void)
|
|||
ret = -1; \
|
||||
} while (0)
|
||||
|
||||
virFirewallSetLockOverride(true);
|
||||
|
||||
if (virFirewallSetBackend(VIR_FIREWALL_BACKEND_DIRECT) < 0) {
|
||||
ret = -1;
|
||||
goto cleanup;
|
||||
|
|
|
@ -1168,6 +1168,8 @@ mymain(void)
|
|||
RUN_TEST_DIRECT(name, method)
|
||||
# endif /* ! WITH_DBUS */
|
||||
|
||||
virFirewallSetLockOverride(true);
|
||||
|
||||
RUN_TEST("single group", testFirewallSingleGroup);
|
||||
RUN_TEST("remove rule", testFirewallRemoveRule);
|
||||
RUN_TEST("many groups", testFirewallManyGroups);
|
||||
|
|
Loading…
Reference in New Issue