When running the tests directly instead of from the makefile, RTLA
is likely to be unset.  The default "./rtla" no longer works, due to
having changed the current diretory.

Fixes: ad5b50a0959fb ("rtla/tests: Run runtime tests in temporary directory")
Signed-off-by: Crystal Wood <[email protected]>
---
 tools/tracing/rtla/tests/engine.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/tracing/rtla/tests/engine.sh 
b/tools/tracing/rtla/tests/engine.sh
index 4287cd64ac31..4fe7bcbab8b7 100644
--- a/tools/tracing/rtla/tests/engine.sh
+++ b/tools/tracing/rtla/tests/engine.sh
@@ -7,7 +7,7 @@ test_begin() {
        # Set test directory to the directory of the script
        scriptfile=$(realpath "$0")
        testdir=$(dirname "$scriptfile")
-       [ -z "$RTLA" ] && RTLA="./rtla"
+       [ -z "$RTLA" ] && RTLA="$(pwd)/rtla"
        [ -n "$TEST_COUNT" ] && echo "1..$TEST_COUNT"
 }
 
-- 
2.54.0


Reply via email to