diff options
author | Phil Sutter <phil@nwl.cc> | 2024-10-01 21:43:18 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2024-10-01 21:49:45 +0200 |
commit | e93372954cf88ac044fb2fc14dcb0e9237804e2d (patch) | |
tree | 791b55423da409c4c563d694e9631755e567f564 | |
parent | 38fde6a6d9959fe8d0bb25e1800ae996becf0621 (diff) |
tests: shell: Adjust for recent changes in libnftnl
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>
-rwxr-xr-x | iptables/tests/shell/testcases/nft-only/0009-needless-bitwise_0 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/tests/shell/testcases/nft-only/0009-needless-bitwise_0 b/iptables/tests/shell/testcases/nft-only/0009-needless-bitwise_0 index 34802cc2..bfceed49 100755 --- a/iptables/tests/shell/testcases/nft-only/0009-needless-bitwise_0 +++ b/iptables/tests/shell/testcases/nft-only/0009-needless-bitwise_0 @@ -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) |