From: David Ahern Date: Wed, 24 Jan 2024 21:41:17 +0000 (-0700) Subject: selftest: Show expected and actual return codes for test failures in fcnal-test X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=70863c902d76f8837652539698bc261c763a2869;p=linux.git selftest: Show expected and actual return codes for test failures in fcnal-test Capture expected and actual return codes for a test that fails in the fcnal-test suite. Signed-off-by: David Ahern Link: https://lore.kernel.org/r/20240124214117.24687-4-dsahern@kernel.org Signed-off-by: Jakub Kicinski --- diff --git a/tools/testing/selftests/net/fcnal-test.sh b/tools/testing/selftests/net/fcnal-test.sh index f590b0fb740ea..d7cfb7c2b427e 100755 --- a/tools/testing/selftests/net/fcnal-test.sh +++ b/tools/testing/selftests/net/fcnal-test.sh @@ -109,6 +109,7 @@ log_test() else nfail=$((nfail+1)) printf "TEST: %-70s [FAIL]\n" "${msg}" + echo " expected rc $expected; actual rc $rc" if [ "${PAUSE_ON_FAIL}" = "yes" ]; then echo echo "hit enter to continue, 'q' to quit"