Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(923)

Side by Side Diff: build/android/pylib/single_test_runner.py

Issue 10986042: Fix the failed cases in URLFetcherFileTest on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import glob 5 import glob
6 import logging 6 import logging
7 import os 7 import os
8 import sys 8 import sys
9 9
10 from base_test_runner import BaseTestRunner 10 from base_test_runner import BaseTestRunner
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 self.test_package = TestPackageExecutable( 59 self.test_package = TestPackageExecutable(
60 self.adb, device, 60 self.adb, device,
61 test_suite, timeout, rebaseline, performance_test, cleanup_test_files, 61 test_suite, timeout, rebaseline, performance_test, cleanup_test_files,
62 self.tool, self.dump_debug_info) 62 self.tool, self.dump_debug_info)
63 self._performance_test_setup = None 63 self._performance_test_setup = None
64 if performance_test: 64 if performance_test:
65 self._performance_test_setup = perf_tests_helper.PerfTestSetup(self.adb) 65 self._performance_test_setup = perf_tests_helper.PerfTestSetup(self.adb)
66 66
67 def _TestSuiteRequiresMockTestServer(self): 67 def _TestSuiteRequiresMockTestServer(self):
68 """Returns True if the test suite requires mock test server.""" 68 """Returns True if the test suite requires mock test server."""
69 return False 69 return (self.test_package.test_suite_basename == 'net_unittests' or False)
Isaac (away) 2012/09/26 06:42:05 we can remove 'or False'. It doesn't change the b
70 # TODO(yfriedman): Disabled because of flakiness.
71 # (self.test_package.test_suite_basename == 'unit_tests' or
72 # self.test_package.test_suite_basename == 'net_unittests' or
73 # False)
74 70
75 def _GetFilterFileName(self): 71 def _GetFilterFileName(self):
76 """Returns the filename of gtest filter.""" 72 """Returns the filename of gtest filter."""
77 return os.path.join(sys.path[0], 'gtest_filter', 73 return os.path.join(sys.path[0], 'gtest_filter',
78 self.test_package.test_suite_basename + '_disabled') 74 self.test_package.test_suite_basename + '_disabled')
79 75
80 def _GetAdditionalEmulatorFilterName(self): 76 def _GetAdditionalEmulatorFilterName(self):
81 """Returns the filename of additional gtest filter for emulator.""" 77 """Returns the filename of additional gtest filter for emulator."""
82 return os.path.join(sys.path[0], 'gtest_filter', 78 return os.path.join(sys.path[0], 'gtest_filter',
83 self.test_package.test_suite_basename + 79 self.test_package.test_suite_basename +
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 test_files += ['chrome/test/data/simple_open_search.xml'] 187 test_files += ['chrome/test/data/simple_open_search.xml']
192 # The following are spell check data. Now only list the data under 188 # The following are spell check data. Now only list the data under
193 # third_party/hunspell_dictionaries which are used by unit tests. 189 # third_party/hunspell_dictionaries which are used by unit tests.
194 old_cwd = os.getcwd() 190 old_cwd = os.getcwd()
195 os.chdir(constants.CHROME_DIR) 191 os.chdir(constants.CHROME_DIR)
196 test_files += glob.glob('third_party/hunspell_dictionaries/*.bdic') 192 test_files += glob.glob('third_party/hunspell_dictionaries/*.bdic')
197 os.chdir(old_cwd) 193 os.chdir(old_cwd)
198 return test_files 194 return test_files
199 elif self.test_package.test_suite_basename == 'net_unittests': 195 elif self.test_package.test_suite_basename == 'net_unittests':
200 return [ 196 return [
197 'chrome/test/data/animate1.gif',
198 'chrome/test/data/simple.html',
201 'net/data/cache_tests', 199 'net/data/cache_tests',
202 'net/data/filter_unittests', 200 'net/data/filter_unittests',
203 'net/data/ftp', 201 'net/data/ftp',
204 'net/data/proxy_resolver_v8_unittest', 202 'net/data/proxy_resolver_v8_unittest',
205 'net/data/ssl/certificates', 203 'net/data/ssl/certificates',
206 'net/data/url_request_unittest/', 204 'net/data/url_request_unittest/',
207 'net/data/proxy_script_fetcher_unittest' 205 'net/data/proxy_script_fetcher_unittest'
208 ] 206 ]
209 elif self.test_package.test_suite_basename == 'ui_tests': 207 elif self.test_package.test_suite_basename == 'ui_tests':
210 return [ 208 return [
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 self.tool.CleanUpEnvironment() 332 self.tool.CleanUpEnvironment()
335 if self.test_package.cleanup_test_files: 333 if self.test_package.cleanup_test_files:
336 self.adb.RemovePushedFiles() 334 self.adb.RemovePushedFiles()
337 if self.dump_debug_info: 335 if self.dump_debug_info:
338 self.dump_debug_info.StopRecordingLog() 336 self.dump_debug_info.StopRecordingLog()
339 if self._performance_test_setup: 337 if self._performance_test_setup:
340 self._performance_test_setup.TearDown() 338 self._performance_test_setup.TearDown()
341 if self.dump_debug_info: 339 if self.dump_debug_info:
342 self.dump_debug_info.ArchiveNewCrashFiles() 340 self.dump_debug_info.ArchiveNewCrashFiles()
343 super(SingleTestRunner, self).TearDown() 341 super(SingleTestRunner, self).TearDown()
OLDNEW
« no previous file with comments | « build/android/gtest_filter/net_unittests_disabled ('k') | net/url_request/url_fetcher_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698