test-network: also stop nftables.service

It is a firewall service used in postmarketOS.
When it is active, then e.g. DHCP packets are filtered, and many
tests will be failed.
This commit is contained in:
Yu Watanabe
2025-12-07 09:09:03 +09:00
parent 43588dd63d
commit 193626bd8b
+2 -1
View File
@@ -432,7 +432,8 @@ def save_active_units():
'systemd-resolved-varlink.socket',
'systemd-resolved.service',
'systemd-timesyncd.service',
'firewalld.service'
'firewalld.service',
'nftables.service',
]:
if call(f'systemctl is-active --quiet {u}') == 0:
call(f'systemctl stop {u}')