selftests/ftrace: Make XFAIL green color
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 1 May 2020 13:37:41 +0000 (22:37 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 1 May 2020 15:31:38 +0000 (09:31 -0600)
Since XFAIL (Expected Failure) is expected to fail the test, which
means that test case works as we expected. IOW, XFAIL is same as
PASS. So make it green.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/ftracetest

index 19e9236dec5e2a7ccc7f92acf5bf0a414cfeb632..a4605b5ee66d97dc12d92fb80bbbba2cf89ea106 100755 (executable)
@@ -299,7 +299,7 @@ eval_result() { # sigval
       return $UNSUPPORTED_RESULT # depends on use case
     ;;
     $XFAIL)
-      prlog "  [${color_red}XFAIL${color_reset}]"
+      prlog "  [${color_green}XFAIL${color_reset}]"
       XFAILED_CASES="$XFAILED_CASES $CASENO"
       return 0
     ;;