Public bug reported:

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

** Affects: iptables (Ubuntu)
     Importance: Undecided
     Assignee: Andreas Hasenack (ahasenack)
         Status: In Progress


** Tags: server-todo

** Tags added: server-todo

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iptables in Ubuntu.
https://bugs.launchpad.net/bugs/2019023

Title:
  Fix shell test suite

Status in iptables package in Ubuntu:
  In Progress

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iptables/+bug/2019023/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to