]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/ftrace: Fix requirement check of README file
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 20 Aug 2021 20:46:47 +0000 (16:46 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 21 Aug 2021 14:25:00 +0000 (10:25 -0400)
commiteb97385b59d1a9f225acba171c296216df17afe5
tree0926bf863610cb44c823ecf548bc83ff13ed75a5
parent8ecf562d5ad4bb8c8c0286a4a852faff30aa13c7
selftests/ftrace: Fix requirement check of README file

The selftest for ftrace checks some features by checking if the README has
text that states the feature is supported by that kernel. Unfortunately,
this check gives false positives because it many not be checked if there's
spaces in the string to check. This is due to the compare between the
required variable with the ":README" string stripped, because neither has
quotes around them.

Link: https://lkml.kernel.org/r/20210820204742.087177341@goodmis.org
Cc: "Tzvetomir Stoyanov" <tz.stoyanov@gmail.com>
Cc: Tom Zanussi <zanussi@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: linux-kselftest@vger.kernel.org
Cc: stable@vger.kernel.org
Fixes: 32f41f2ef7d6e ("selftests/ftrace: Support ":README" suffix for requires")
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/functions