OSDN Git Service

selftests/ftace: Fix KTAP output ordering
authorMark Brown <broonie@kernel.org>
Sat, 10 Jun 2023 14:27:55 +0000 (15:27 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 12 Jun 2023 22:40:22 +0000 (16:40 -0600)
The KTAP parser I used to test the KTAP output for ftracetest was overly
robust and did not notice that the test number and pass/fail result were
reversed. Fix this.

Fixes: dbcf76390eb9 ("selftests/ftrace: Improve integration with kselftest runner")
Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/ftracetest

index 2506621..cb5f18c 100755 (executable)
@@ -301,7 +301,7 @@ ktaptest() { # result comment
     comment="# $comment"
   fi
 
-  echo $CASENO $result $INSTANCE$CASENAME $comment
+  echo $result $CASENO $INSTANCE$CASENAME $comment
 }
 
 eval_result() { # sigval