The ping failure path tries to execute the failure message as a command because the echo command is missing. This reports a confusing "command not found" error and returns 127 from that command instead of printing the intended diagnostic. Add the missing echo so the ping failure is reported consistently with the other failure paths in the script. I found this bug manually. OpenAI Codex generated the one-line code change. I wrote the reproducer/test case, reviewed the generated change, and tested the patch. Fixes: d6905f088d2b ("selftests: netfilter: nft_nat_zones.sh: shellcheck cleanups") Signed-off-by: Zhiqi Zhang --- tools/testing/selftests/net/netfilter/nft_nat_zones.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/netfilter/nft_nat_zones.sh b/tools/testing/selftests/net/netfilter/nft_nat_zones.sh index d935c967dd..f15bfd3373 100755 --- a/tools/testing/selftests/net/netfilter/nft_nat_zones.sh +++ b/tools/testing/selftests/net/netfilter/nft_nat_zones.sh @@ -171,7 +171,7 @@ done wait || ret=1 -[ "$ret" -ne 0 ] && "FAIL: Ping failure from $cl" 1>&2 +[ "$ret" -ne 0 ] && echo "FAIL: Ping failure from $cl" 1>&2 for i in $(seq 1 "$maxclients"); do if ! ip netns exec "$gw" nft get element inet raw inicmp "{ 10.1.0.3 . \"veth$i\" . 10.3.0.99 }" | grep -q "{ 10.1.0.3 . \"veth$i\" . 10.3.0.99 counter packets 3 bytes 252 }"; then -- 2.54.0 (Apple Git-157)