| OLD | NEW |
| 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 """Uploads the results to the flakiness dashboard server.""" | 5 """Uploads the results to the flakiness dashboard server.""" |
| 6 # pylint: disable=E1002,R0201 | 6 # pylint: disable=E1002,R0201 |
| 7 | 7 |
| 8 import logging | 8 import logging |
| 9 import os | 9 import os |
| 10 import shutil | 10 import shutil |
| 11 import tempfile | 11 import tempfile |
| 12 import xml | 12 import xml |
| 13 | 13 |
| 14 | 14 |
| 15 from pylib import cmd_helper | 15 from devil.utils import cmd_helper |
| 16 from pylib import constants | 16 from pylib import constants |
| 17 from pylib.results.flakiness_dashboard import json_results_generator | 17 from pylib.results.flakiness_dashboard import json_results_generator |
| 18 from pylib.utils import repo_utils | 18 from pylib.utils import repo_utils |
| 19 | 19 |
| 20 | 20 |
| 21 | 21 |
| 22 class JSONResultsGenerator(json_results_generator.JSONResultsGeneratorBase): | 22 class JSONResultsGenerator(json_results_generator.JSONResultsGeneratorBase): |
| 23 """Writes test results to a JSON file and handles uploading that file to | 23 """Writes test results to a JSON file and handles uploading that file to |
| 24 the test results server. | 24 the test results server. |
| 25 """ | 25 """ |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 """Reports test results to the flakiness dashboard for Chrome for Android. | 172 """Reports test results to the flakiness dashboard for Chrome for Android. |
| 173 | 173 |
| 174 Args: | 174 Args: |
| 175 results: test results. | 175 results: test results. |
| 176 flakiness_dashboard_server: the server to upload the results to. | 176 flakiness_dashboard_server: the server to upload the results to. |
| 177 test_type: the type of the tests (as displayed by the flakiness dashboard). | 177 test_type: the type of the tests (as displayed by the flakiness dashboard). |
| 178 """ | 178 """ |
| 179 uploader = ResultsUploader(test_type) | 179 uploader = ResultsUploader(test_type) |
| 180 uploader.AddResults(results) | 180 uploader.AddResults(results) |
| 181 uploader.Upload(flakiness_dashboard_server) | 181 uploader.Upload(flakiness_dashboard_server) |
| OLD | NEW |