Chromium Code Reviews| Index: build/android/run_tests.py |
| diff --git a/build/android/run_tests.py b/build/android/run_tests.py |
| index f7459dd9070c8898f768605d0a670f18c376fd61..468ff64d351f24a85e4ca14a24221e8a2e9d08b8 100755 |
| --- a/build/android/run_tests.py |
| +++ b/build/android/run_tests.py |
| @@ -174,10 +174,10 @@ class TestSharder(BaseTestSharder): |
| def __init__(self, attached_devices, test_suite, gtest_filter, |
| test_arguments, timeout, cleanup_test_files, tool, |
| - log_dump_name, fast_and_loose, build_type, in_webkit_checkout): |
| + log_dump_name, fast_and_loose, build_type, in_webkit_checkout, |
| + flakiness_server=None): |
| BaseTestSharder.__init__(self, attached_devices, build_type) |
| self.test_suite = test_suite |
| - self.test_suite_basename = os.path.basename(test_suite) |
| self.gtest_filter = gtest_filter or '' |
| self.test_arguments = test_arguments |
| self.timeout = timeout |
| @@ -186,6 +186,7 @@ class TestSharder(BaseTestSharder): |
| self.log_dump_name = log_dump_name |
| self.fast_and_loose = fast_and_loose |
| self.in_webkit_checkout = in_webkit_checkout |
| + self.flakiness_server = flakiness_server |
| self.all_tests = [] |
| if not self.gtest_filter: |
| # No filter has been specified, let's add all tests then. |
| @@ -272,9 +273,13 @@ class TestSharder(BaseTestSharder): |
| def OnTestsCompleted(self, test_runners, test_results): |
| """Notifies that we completed the tests.""" |
| - test_results.LogFull('Unit test', os.path.basename(self.test_suite), |
| - self.build_type, self.all_tests) |
| + test_results.LogFull('Unit test', |
|
Isaac (away)
2012/12/18 04:17:43
can we use named arguments here?
frankf
2012/12/18 21:33:50
Done.
|
| + test_runners[0].test_package.test_suite_basename, |
| + build_type=self.build_type, |
| + all_tests=self.all_tests, |
| + flakiness_server=self.flakiness_server) |
| test_results.PrintAnnotation() |
| + |
| if self.log_dump_name: |
| # Zip all debug info outputs into a file named by log_dump_name. |
| debug_info.GTestDebugInfo.ZipAndCleanResults( |
| @@ -347,7 +352,8 @@ def _RunATestSuite(options): |
| options.log_dump, |
| options.fast_and_loose, |
| options.build_type, |
| - options.webkit) |
| + options.webkit, |
| + options.flakiness_dashboard_server) |
| test_results = sharder.RunShardedTests() |
| for buildbot_emulator in buildbot_emulators: |