]> git.ipfire.org Git - thirdparty/iptables.git/commit
tests: shell: Sanitize nft-only/0009-needless-bitwise_0
authorPhil Sutter <phil@nwl.cc>
Wed, 19 Jul 2023 12:58:11 +0000 (14:58 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 19 Jul 2023 13:05:47 +0000 (15:05 +0200)
commit2746726e03d9017d4c940a247590f8d5c5d5a73e
tree381f93a16ad1a7be723a69b2bc5b0abf8cefc081
parent4e95200ded923f0eb5579c33b91176193c59dbe0
tests: shell: Sanitize nft-only/0009-needless-bitwise_0

Some versions of awk (gawk-4.2.1-4.el8 in particular) also print the
non-debug ruleset listing's empty lines, causing the diff to fail. Catch
this by exiting upon seeing the first table heading. For the sake of
comparing bytecode, the actual ruleset listing is not interesting,
anyway.

Fixes: 0f7ea0390b336 ("tests/shell: Fix nft-only/0009-needless-bitwise_0")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/tests/shell/testcases/nft-only/0009-needless-bitwise_0