diff options
author | Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> | 2014-12-04 14:41:16 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-12-04 10:38:49 -0500 |
commit | 36922d133c931a5a7b844204d554de6ae85bee34 (patch) | |
tree | 0464e66417e35a7944541539a352579023b8c705 /tools/testing/selftests/ftrace | |
parent | 815b18ea66d6fb67a3534edf68dfa23bdcec0485 (diff) |
ftracetest: Fix to show descriptions on dash
The ftracetest doesn't show testcase's descriptions when
it is executed on dash. This fixes that to show the
descriptions on dash correctly by passing it via a variable
instead of directly passing the grep command output.
Link: http://lkml.kernel.org/r/20141204194116.7376.78940.stgit@localhost.localdomain
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/selftests/ftrace')
-rwxr-xr-x | tools/testing/selftests/ftrace/ftracetest | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/ftrace/ftracetest b/tools/testing/selftests/ftrace/ftracetest index 535b98b79c29..e8b402193a82 100755 --- a/tools/testing/selftests/ftrace/ftracetest +++ b/tools/testing/selftests/ftrace/ftracetest | |||
@@ -135,7 +135,8 @@ TOTAL_RESULT=0 | |||
135 | CASENO=0 | 135 | CASENO=0 |
136 | testcase() { # testfile | 136 | testcase() { # testfile |
137 | CASENO=$((CASENO+1)) | 137 | CASENO=$((CASENO+1)) |
138 | prlog -n "[$CASENO]"`grep "^#[ \t]*description:" $1 | cut -f2 -d:` | 138 | desc=`grep "^#[ \t]*description:" $1 | cut -f2 -d:` |
139 | prlog -n "[$CASENO]$desc" | ||
139 | } | 140 | } |
140 | 141 | ||
141 | eval_result() { # retval sigval | 142 | eval_result() { # retval sigval |