[PATCH] tests: Set up two more overrides for root builders

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 tests/networkxml2firewalltest.c | 2 ++
 tests/virfirewalltest.c         | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/tests/networkxml2firewalltest.c b/tests/networkxml2firewalltest.c
index 1225c44..c69ab54 100644
--- a/tests/networkxml2firewalltest.c
+++ b/tests/networkxml2firewalltest.c
@@ -135,6 +135,8 @@ mymain(void)
             ret = -1;                                                   \
     } while (0)

+    virFirewallSetLockOverride(true);
+
     if (virFirewallSetBackend(VIR_FIREWALL_BACKEND_DIRECT) < 0) {
         ret = -1;
         goto cleanup;
diff --git a/tests/virfirewalltest.c b/tests/virfirewalltest.c
index 81c5557..1f8d8f1 100644
--- a/tests/virfirewalltest.c
+++ b/tests/virfirewalltest.c
@@ -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);
-- 
2.2.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]