summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
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: