rtla/tests: Show the command line for failing tests

Make investigating test failures a little bit easier by not having
to recreate the command line by looking in the test script.

Unfortunately, this doesn't capture variables set outside of the
command line, but it's better than nothing.

Signed-off-by: Crystal Wood <crwood@redhat.com>
Link: https://lore.kernel.org/r/20260919062756.819701-3-crwood@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
This commit is contained in:
Crystal Wood 2026-09-19 01:27:55 -05:00 committed by Tomas Glozar
parent 7a5e8f9151
commit 7e3fb693a1

View File

@ -86,6 +86,7 @@ check() {
else
# Add rtla output and exit code as comments in case of failure
echo "not ok $ctr - $1"
echo "# command: $RTLA" $2
echo -n "$failbuf"
echo "$result" | col -b | while read line; do echo "# $line"; done
printf "#\n# exit code %s\n" $exitcode