Skip to content
Commit 0e27ded1 authored by Juerg Haefliger's avatar Juerg Haefliger Committed by Shuah Khan
Browse files

selftests/ftrace: Handle the absence of tput



In environments where tput is not available, we get the following
error
$ ./ftracetest: 163: [: Illegal number:
because ncolors is an empty string. Fix that by setting it to 0 if the
tput command fails.

Acked-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarShuah Khan <shuah@kernel.org>
parent 4ce55a9c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment