selftests/run_kselftest.sh: Use readlink if realpath is not available
authorYosry Ahmed <yosry.ahmed@linux.dev>
Tue, 18 Mar 2025 16:05:10 +0000 (16:05 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 15 May 2025 22:52:47 +0000 (16:52 -0600)
commit1107dc4c5b06188a3fb4897ceb197eb320a52e85
tree42f898006cab38b018146c41b703feca401b2ed2
parent1efe2022286d30077385ba9b24d25c26c77d0768
selftests/run_kselftest.sh: Use readlink if realpath is not available

'realpath' is not always available,  fallback to 'readlink -f' if is not
available. They seem to work equally well in this context.

Link: https://lore.kernel.org/r/20250318160510.3441646-1-yosry.ahmed@linux.dev
Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/run_kselftest.sh