summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGuillaume Tucker <guillaume.tucker@collabora.com>2023-02-03 18:26:03 +0300
committerShuah Khan <skhan@linuxfoundation.org>2023-02-13 19:09:46 +0300
commit4ebe33398c40c1118b4d8546978036c0e0032d1b (patch)
tree004d95ba2d65a0ba98720d970fb12547b3aa7a58 /tools/perf/scripts/python
parent4b225d4f067f544b7594ce8a18216e19f0c1d692 (diff)
downloadlinux-4ebe33398c40c1118b4d8546978036c0e0032d1b.tar.xz
selftests: find echo binary to use -ne options
Find the actual echo binary using $(which echo) and use it for formatted output with -ne. On some systems, the default echo command doesn't handle the -e option and the output looks like this (arm64 build): -ne Emit Tests for alsa -ne Emit Tests for amd-pstate -ne Emit Tests for arm64 This is for example the case with the KernelCI Docker images e.g. kernelci/gcc-10:x86-kselftest-kernelci. With the actual echo binary (e.g. in /bin/echo), the output is formatted as expected (x86 build this time): Emit Tests for alsa Emit Tests for amd-pstate Skipping non-existent dir: arm64 Only the install target is using "echo -ne" so keep the $ECHO variable local to it. Reported-by: "kernelci.org bot" <bot@kernelci.org> Fixes: 3297a4df805d ("kselftests: Enable the echo command to print newlines in Makefile") Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions