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 <[email protected]>
---
 tools/tracing/rtla/tests/engine.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/tracing/rtla/tests/engine.sh 
b/tools/tracing/rtla/tests/engine.sh
index 4fe7bcbab8b7..ab4fa0a8ded7 100644
--- a/tools/tracing/rtla/tests/engine.sh
+++ b/tools/tracing/rtla/tests/engine.sh
@@ -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
-- 
2.54.0


Reply via email to