diff options
author | timurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 09:35:15 +0000 |
---|---|---|
committer | timurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 09:35:15 +0000 |
commit | 38a8cd88f853d0a30e6537db10b12a07998728a8 (patch) | |
tree | 3df32fb56b22a996940cc46a41e7ec2a2e70ff36 /tools/valgrind/chrome_tests.py | |
parent | ed7846c34aa8acf618dcd9ff869fc9a93137f9c0 (diff) | |
download | chromium_src-38a8cd88f853d0a30e6537db10b12a07998728a8.zip chromium_src-38a8cd88f853d0a30e6537db10b12a07998728a8.tar.gz chromium_src-38a8cd88f853d0a30e6537db10b12a07998728a8.tar.bz2 |
[GTTF] Automatically append FLAKY_ and FAILS_ prefixes to gtest_filters.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/2765002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49240 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind/chrome_tests.py')
-rwxr-xr-x | tools/valgrind/chrome_tests.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py index 9e1967c..01ef652 100755 --- a/tools/valgrind/chrome_tests.py +++ b/tools/valgrind/chrome_tests.py @@ -180,7 +180,18 @@ class ChromeTests: if line.startswith("#") or line.startswith("//") or line.isspace(): continue line = line.rstrip() + test_prefixes = ["FLAKY", "FAILS"] + for p in test_prefixes: + # Strip prefixes from the test names. + line = line.replace(".%s_" % p, ".") + # Exclude the original test name. filters.append(line) + if line[-2:] != ".*": + # List all possible prefixes if line doesn't end with ".*". + for p in test_prefixes: + filters.append(line.replace(".", ".%s_" % p)) + # Get rid of duplicates. + filters = set(filters) gtest_filter = self._gtest_filter if len(filters): if gtest_filter: |