summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authornirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-02 20:48:10 +0000
committernirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-02 20:48:10 +0000
commit069df0de88954d9be194300af0d3c44b718d536c (patch)
tree440baa35be824aeef7108e79dd2bd0d2d39ba0b4 /tools
parent583f25b4ee7810e5e3e1749afc833a64bf1193dd (diff)
downloadchromium_src-069df0de88954d9be194300af0d3c44b718d536c.zip
chromium_src-069df0de88954d9be194300af0d3c44b718d536c.tar.gz
chromium_src-069df0de88954d9be194300af0d3c44b718d536c.tar.bz2
Disable IPCSyncChannelTest.* under Valgrind
Times out too often under Valgrind on Mac Tracking bug: crbug.com/15817 Review URL: http://codereview.chromium.org/150218 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rwxr-xr-xtools/valgrind/chrome_tests.py23
1 files changed, 14 insertions, 9 deletions
diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py
index 1417c9f..2d9f6f6 100755
--- a/tools/valgrind/chrome_tests.py
+++ b/tools/valgrind/chrome_tests.py
@@ -188,15 +188,20 @@ class ChromeTests:
'''
filters = []
for directory in self._data_dirs:
- filename = os.path.join(directory, name + ".gtest.txt")
- if os.path.exists(filename):
- logging.info("reading gtest filters from %s" % filename)
- f = open(filename, 'r')
- for line in f.readlines():
- if line.startswith("#") or line.startswith("//") or line.isspace():
- continue
- line = line.rstrip()
- filters.append(line)
+ platform_suffix = {'darwin': 'mac',
+ 'linux2': 'linux'}[sys.platform]
+ gtest_filter_files = [
+ os.path.join(directory, name + ".gtest.txt"),
+ os.path.join(directory, name + ".gtest_%s.txt" % platform_suffix)]
+ for filename in gtest_filter_files:
+ if os.path.exists(filename):
+ logging.info("reading gtest filters from %s" % filename)
+ f = open(filename, 'r')
+ for line in f.readlines():
+ if line.startswith("#") or line.startswith("//") or line.isspace():
+ continue
+ line = line.rstrip()
+ filters.append(line)
gtest_filter = self._options.gtest_filter
if len(filters):
if gtest_filter: