Merge "Fix the way to find negative filter pattern."
This commit is contained in:
commit
858ec7abec
1 changed files with 1 additions and 1 deletions
|
@ -1032,7 +1032,7 @@ static bool PickOptions(std::vector<char*>& args, IsolationTestOptions& options)
|
|||
gtest_filter_str = "--gtest_filter=-bionic_selftest*";
|
||||
} else {
|
||||
// Find if '-' for NEGATIVE_PATTERNS exists.
|
||||
if (gtest_filter_str.find(":-") != std::string::npos) {
|
||||
if (gtest_filter_str.find("-") != std::string::npos) {
|
||||
gtest_filter_str += ":bionic_selftest*";
|
||||
} else {
|
||||
gtest_filter_str += ":-bionic_selftest*";
|
||||
|
|
Loading…
Reference in a new issue