Skip to content

Commit

Permalink
perf test: Do not be case sensitive when searching for matching tests
Browse files Browse the repository at this point in the history
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]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
acmel committed Nov 6, 2015
1 parent ba1fae4 commit 345c99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/tests/builtin-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static bool perf_test__matches(struct test *test, int curr, int argc, const char
continue;
}

if (strstr(test->desc, argv[i]))
if (strcasestr(test->desc, argv[i]))
return true;
}

Expand Down

0 comments on commit 345c99a

Please sign in to comment.