]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
tests: shell: Adjust for recent changes in libnftnl
authorPhil Sutter <phil@nwl.cc>
Tue, 1 Oct 2024 19:43:18 +0000 (21:43 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 1 Oct 2024 19:49:45 +0000 (21:49 +0200)
libnftnl commit a96d5a338f24e ("rule: Don't append a newline when
printing a rule") affected nft (and iptables-nft) debug output in that
no extra newline is appended to rule bytecode output anymore. Tolerate
this in the sole test case it breaks by ignoring changes to blank lines.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/tests/shell/testcases/nft-only/0009-needless-bitwise_0

index 34802cc26aad431165c1d121db6d617d34405e42..bfceed4976f185dd6ae9c09d0c544946d54b2578 100755 (executable)
@@ -343,4 +343,4 @@ filter() {
        awk '/^table /{exit} /^(  \[|$)/{print}'
 }
 
-diff -u -Z <(filter <<< "$EXPECT") <(nft --debug=netlink list ruleset | filter)
+diff -u -Z -B <(filter <<< "$EXPECT") <(nft --debug=netlink list ruleset | filter)