selftests: ftrace: Do not failure if there is unsupported tests
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 7 Jul 2017 00:59:22 +0000 (09:59 +0900)
committerShuah Khan <shuahkh@osg.samsung.com>
Wed, 26 Jul 2017 21:41:13 +0000 (15:41 -0600)
commit9b682cd4afeb239031c0646457de547001993066
treee1f794dcaf0e803467f1b3c1b183327ca5d5deaa
parentbc3e2ad395e3b41183c0bc5b4958e465f5f46017
selftests: ftrace: Do not failure if there is unsupported tests

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>
Acked-by: Steven Rostedt (VMware) <srostedt@goodmis.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/ftrace/ftracetest