Merge "Fix parse of gtest_filter in bionic gtest main."
This commit is contained in:
commit
385c07a74c
1 changed files with 6 additions and 1 deletions
|
@ -771,7 +771,12 @@ static bool PickOptions(std::vector<char*>& args, IsolationTestOptions& options)
|
|||
if (gtest_filter_str == "") {
|
||||
gtest_filter_str = "--gtest_filter=-bionic_selftest*";
|
||||
} else {
|
||||
gtest_filter_str += ":-bionic_selftest*";
|
||||
// Find if '-' for NEGATIVE_PATTERNS exists.
|
||||
if (gtest_filter_str.find(":-") != std::string::npos) {
|
||||
gtest_filter_str += ":bionic_selftest*";
|
||||
} else {
|
||||
gtest_filter_str += ":-bionic_selftest*";
|
||||
}
|
||||
}
|
||||
args.push_back(strdup(gtest_filter_str.c_str()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue