]> git.ipfire.org Git - thirdparty/iptables.git/commit
tests: iptables-test: Fix missing chain case
authorPhil Sutter <phil@nwl.cc>
Thu, 12 Aug 2021 17:11:59 +0000 (19:11 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 13 Sep 2021 15:00:51 +0000 (17:00 +0200)
commitfcbe454bf0d05612a8484723fd3e9299d4ee836f
treee1199864365c286457cf46d64dbcea4994a92fd8
parent61e85e3192deaff3b9dd1eb9270863acc7a26311
tests: iptables-test: Fix missing chain case

If a chain line was really missing, Python complained about reference
before assignment of 'chain_array' variable. While being at it, reuse
print_error() function for reporting and allow to continue with the next
input file instead of exiting.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables-test.py