Commit 70863c90 authored by David Ahern's avatar David Ahern Committed by Jakub Kicinski

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: default avatarDavid Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240124214117.24687-4-dsahern@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 79bf0d4a
...@@ -109,6 +109,7 @@ log_test() ...@@ -109,6 +109,7 @@ log_test()
else else
nfail=$((nfail+1)) nfail=$((nfail+1))
printf "TEST: %-70s [FAIL]\n" "${msg}" printf "TEST: %-70s [FAIL]\n" "${msg}"
echo " expected rc $expected; actual rc $rc"
if [ "${PAUSE_ON_FAIL}" = "yes" ]; then if [ "${PAUSE_ON_FAIL}" = "yes" ]; then
echo echo
echo "hit enter to continue, 'q' to quit" echo "hit enter to continue, 'q' to quit"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment