]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: stop firewalld and friends to make them not disturb test-firewall-util
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 24 Jul 2025 20:55:20 +0000 (05:55 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 4 Aug 2025 15:11:04 +0000 (16:11 +0100)
Hopefully fixes #35526.

(cherry picked from commit 7bef072ca986f8641881a15bd6ae1659883338f2)

test/units/TEST-02-UNITTESTS.sh

index 0aced75c67a3f598a2778bdc75ded8ef9175b2cc..12860d57009dd0fe352c20c93f5b055af72eda44 100755 (executable)
@@ -32,6 +32,11 @@ if ! systemd-detect-virt -qc; then
     sysctl net.ipv4.ping_group_range="0 2147483647"
 fi
 
+# Disable firewalld and friends to make them not disturb test-firewall-util
+systemctl disable --now firewalld.service || :
+systemctl disable --now iptables.service || :
+systemctl disable --now ip6tables.service || :
+
 # Check & report test results
 # Arguments:
 #   $1: test path