diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2020-06-03 05:41:09 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-06-16 19:42:47 +0300 |
commit | 1b8eec510ba641418573eacc98a7e9c07726af30 (patch) | |
tree | cddf870013d6620c166ae8bd913505bef81135bc /tools/testing/selftests/ftrace/ftracetest | |
parent | 305c8388fd0c92f37ab766dbf864b7bea4b66f5f (diff) | |
download | linux-1b8eec510ba641418573eacc98a7e9c07726af30.tar.xz |
selftests/ftrace: Support ":README" suffix for requires
Add ":README" suffix support for the requires list, so that
the testcase can list up the required string for README file
to the requires list.
Note that the required string is treated as a fixed string,
instead of regular expression. Also, the testcase can specify
a string containing spaces with quotes. E.g.
# requires: "place: [<module>:]<symbol>":README
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/ftrace/ftracetest')
-rwxr-xr-x | tools/testing/selftests/ftrace/ftracetest | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/ftrace/ftracetest b/tools/testing/selftests/ftrace/ftracetest index cdf7940b6610..8ec1922e974e 100755 --- a/tools/testing/selftests/ftrace/ftracetest +++ b/tools/testing/selftests/ftrace/ftracetest @@ -269,7 +269,8 @@ testcase() { # testfile checkreq() { # testfile requires=`grep "^#[ \t]*requires:" $1 | cut -f2- -d:` - check_requires $requires + # Use eval to pass quoted-patterns correctly. + eval check_requires "$requires" } test_on_instance() { # testfile |