Comment 0 for bug 2019023

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

The shell test suite (iptables/tests/shell/run-tests.sh) is currently failing on the firewalld tests:

W: [FAILED] ././testcases/firewalld-restore/0001-firewalld_0: expected 0 but got 1
W: [FAILED] ././testcases/firewalld-restore/0002-firewalld-restart_0: expected 0 but got 1

After some troubleshooting, it turns out this is happening because of an unsorted order in the output of iptables-save, which was fixed[1] in later releases of iptables. The code was trying to compensate for that, but there was a small mistake[2] in a case/esac globbing:

case "$XT_MULTI" in
-*/xtables-nft-multi)
+*xtables-nft-multi)

1. https://git.netfilter.org/iptables/commit/?id=e28cf12cf50b9e2e0114f04331635fc122cb8aef
2. https://git.netfilter.org/iptables/commit/?id=2b2b7948c1960ba4680677664ff58477be869de6