selftests/ftrace: Make a script checkbashisms clean
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 22 Feb 2019 01:26:57 +0000 (10:26 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 24 May 2019 19:37:46 +0000 (13:37 -0600)
Make kprobe_ftrace.tc checkbashisms clean. Since
"grep function available_tracers" causes an error
on checkbashisms, fix it by explicitly escaping
with double-quotations.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_ftrace.tc

index 492426e..7650a82 100644 (file)
@@ -3,7 +3,7 @@
 # description: Kprobe dynamic event with function tracer
 
 [ -f kprobe_events ] || exit_unsupported # this is configurable
-grep function available_tracers || exit_unsupported # this is configurable
+grep "function" available_tracers || exit_unsupported # this is configurable
 
 # prepare
 echo nop > current_tracer