mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] selftests: ftrace: Do not failure if there is unsupported tests
@ 2017-07-03  5:25 Masami Hiramatsu
  2017-07-03  5:26 ` [PATCH 2/2] selftests: ftrace: Add more verbosity for immediate log Masami Hiramatsu
  2017-07-03 13:15 ` [PATCH 1/2] selftests: ftrace: Do not failure if there is unsupported tests Steven Rostedt
  0 siblings, 2 replies; 8+ messages in thread
From: Masami Hiramatsu @ 2017-07-03  5:25 UTC (permalink / raw)
  To: linux-kselftest, shuah, Steven Rostedt
  Cc: mhiramat, Ingo Molnar, linux-kernel, naresh.kamboju

Do not return failure exit code (1) for unsupported testcases,
since it is expected for stable kernels.

Previously, ftracetest is expected to run only on current
release for avoiding regressions. However, nowadays we run
it on stable kernels. This means some test cases must return
unsupported result. In such case, we should NOT exit
ftracetest with error status for unsupported results so that
kselftest (upper tests wrapper) shows it passed correctly.

Note that we continue to treat unresolved results as failure,
if test writers would like to notice user that the test result
should be reviewed, they can use exit_unresolved.

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 14a03ea..290cd42 100755
--- a/tools/testing/selftests/ftrace/ftracetest
+++ b/tools/testing/selftests/ftrace/ftracetest
@@ -187,7 +187,7 @@ eval_result() { # sigval
     $UNSUPPORTED)
       prlog "	[UNSUPPORTED]"
       UNSUPPORTED_CASES="$UNSUPPORTED_CASES $CASENO"
-      return 1 # this is not a bug, but the result should be reported.
+      return 0 # this is not a bug.
     ;;
     $XFAIL)
       prlog "	[XFAIL]"

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-07-04  0:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-03  5:25 [PATCH 1/2] selftests: ftrace: Do not failure if there is unsupported tests Masami Hiramatsu
2017-07-03  5:26 ` [PATCH 2/2] selftests: ftrace: Add more verbosity for immediate log Masami Hiramatsu
2017-07-03 13:19   ` Steven Rostedt
2017-07-03 15:57     ` Masami Hiramatsu
2017-07-03 13:15 ` [PATCH 1/2] selftests: ftrace: Do not failure if there is unsupported tests Steven Rostedt
2017-07-03 15:52   ` Masami Hiramatsu
2017-07-03 15:59     ` Steven Rostedt
2017-07-04  0:30       ` Masami Hiramatsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome