提交 345c99a3 编写于 作者: A Arnaldo Carvalho de Melo

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 <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-c1u05npqbf6epse17ovfejoj@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 ba1fae43
...@@ -196,7 +196,7 @@ static bool perf_test__matches(struct test *test, int curr, int argc, const char ...@@ -196,7 +196,7 @@ static bool perf_test__matches(struct test *test, int curr, int argc, const char
continue; continue;
} }
if (strstr(test->desc, argv[i])) if (strcasestr(test->desc, argv[i]))
return true; return true;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册