lkml.org 
[lkml]   [2020]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/7] selftests/ftrace: Allow ":" in description
    Date
    Allow ":" in the description line. Currently if there is ":"
    in the test description line, the description is cut at that
    point, but that was unintended.

    Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
    ---
    tools/testing/selftests/ftrace/ftracetest | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/tools/testing/selftests/ftrace/ftracetest b/tools/testing/selftests/ftrace/ftracetest
    index a4605b5ee66d..d3f6652311ef 100755
    --- a/tools/testing/selftests/ftrace/ftracetest
    +++ b/tools/testing/selftests/ftrace/ftracetest
    @@ -263,7 +263,7 @@ CASENO=0

    testcase() { # testfile
    CASENO=$((CASENO+1))
    - desc=`grep "^#[ \t]*description:" $1 | cut -f2 -d:`
    + desc=`grep "^#[ \t]*description:" $1 | cut -f2- -d:`
    prlog -n "[$CASENO]$INSTANCE$desc"
    }

    \
     
     \ /
      Last update: 2020-06-01 16:43    [W:2.514 / U:0.148 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site