From 591d8ae6738159be5109683c21fd7b868aaf1a17 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 10 Oct 2023 06:22:47 +0200 Subject: [PATCH] test: Adjust TestFirewall.testNetworkingPage for firewalld 2.0.1 Commit 90abd41cd3 only fixed testFirewallPage(). But the counting fix also needs to be applied to testNetworkingPage(). --- test/verify/check-networkmanager-firewall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/verify/check-networkmanager-firewall b/test/verify/check-networkmanager-firewall index 3b5b3fb5ec87..3accb7040f1a 100755 --- a/test/verify/check-networkmanager-firewall +++ b/test/verify/check-networkmanager-firewall @@ -69,7 +69,7 @@ class TestFirewall(netlib.NetworkCase): m = self.machine def get_num_zones(): - return len(m.execute("firewall-cmd --get-active-zones | grep '^[a-zA-Z]'").split()) + return int(m.execute("firewall-cmd --get-active-zones | grep --count '^[a-zA-Z]'").strip()) active_zones = get_num_zones()