perf test: Do not be case sensitive when searching for matching tests
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 345c99a303e1d97b407bf99190314a878d59ca92 Gitweb: http://git.kernel.org/tip/345c99a303e1d97b407bf99190314a878d59ca92 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Fri, 6 Nov 2015 17:03:38 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Fri, 6 Nov 2015 17:50:04 -0300
perf test: Do not be case sensitive when searching for matching tests
Before:
# perf test llvm # perf test LLVM 35: Test LLVM searching and compiling : Ok #
After
# perf test llvm 35: Test LLVM searching and compiling : Ok #
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/tests/builtin-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/tests/builtin-test.c +1 -1
@@ -196,7 +196,7 @@ static bool perf_test__matches(struct test *test, int curr, int argc, const charcontinue ; } -if (strstr (test->desc, argv[i])) +if (strcasestr (test->desc, argv[i]))return true; }