summaryrefslogtreecommitdiffstats
path: root/tools/code_coverage
diff options
context:
space:
mode:
authorpshenoy@chromium.org <pshenoy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-29 23:51:55 +0000
committerpshenoy@chromium.org <pshenoy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-29 23:51:55 +0000
commit946d259c991c287a17ccb4a129e46d4f78f3d47b (patch)
treed16556f13aebede07120540ea3974d8b00c4f5cb /tools/code_coverage
parent008a24f87885faa38c09532297bf9094c148247c (diff)
downloadchromium_src-946d259c991c287a17ccb4a129e46d4f78f3d47b.zip
chromium_src-946d259c991c287a17ccb4a129e46d4f78f3d47b.tar.gz
chromium_src-946d259c991c287a17ccb4a129e46d4f78f3d47b.tar.bz2
Enable only 'downloads' related tests in browser_tests on coverage bot.
Review URL: https://chromiumcodereview.appspot.com/11414214 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170297 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/code_coverage')
-rwxr-xr-xtools/code_coverage/coverage_posix.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/code_coverage/coverage_posix.py b/tools/code_coverage/coverage_posix.py
index 9b4d448..ed4b378 100755
--- a/tools/code_coverage/coverage_posix.py
+++ b/tools/code_coverage/coverage_posix.py
@@ -244,6 +244,26 @@ gTestExclusions = {
'AutomatedUITestBase.DragOut',), },
}
+"""Since random tests are failing/hanging on coverage bot, we are enabling
+ tests feature by feature. crbug.com/159748
+ Below are the downloads related tests enabled.
+ SavePageBrowserTest.*
+ SavePageAsMHTMLBrowserTest.*
+ DownloadQueryTest.*
+ DownloadDangerPromptTest.*
+ DownloadTest.*
+"""
+gTestInclusions = {
+ 'linux2': {
+ 'browser_tests':
+ ('SavePageBrowserTest.*',
+ 'SavePageAsMHTMLBrowserTest.*',
+ 'DownloadQueryTest.*',
+ 'DownloadDangerPromptTest.*',
+ 'DownloadTest.*',),
+ },
+}
+
def TerminateSignalHandler(sig, stack):
"""When killed, try and kill our child processes."""
@@ -783,6 +803,13 @@ class Coverage(object):
if test in fulltest:
negative_gfilter_list += excldict[test]
+ inclusions = gTestInclusions
+ include_dict = inclusions.get(sys.platform)
+ if include_dict:
+ for test in include_dict.keys():
+ if test in fulltest:
+ positive_gfilter_list += include_dict[test]
+
fulltest_basename = os.path.basename(fulltest)
if fulltest_basename in self.test_filters:
specific_test_filters = self.test_filters[fulltest_basename].split('-')