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 | 6 |
7 import logging | 7 import logging |
8 import os | 8 import os |
9 import shutil | 9 import shutil |
10 import subprocess | 10 import subprocess |
11 import sys | 11 import sys |
12 import tempfile | 12 import tempfile |
| 13 import xml |
| 14 |
13 | 15 |
14 # Include path when ran from a Chromium checkout. | 16 # Include path when ran from a Chromium checkout. |
15 sys.path.append( | 17 sys.path.append( |
16 os.path.abspath(os.path.join(os.path.dirname(__file__), | 18 os.path.abspath(os.path.join(os.path.dirname(__file__), |
17 os.pardir, os.pardir, os.pardir, os.pardir, | 19 os.pardir, os.pardir, os.pardir, os.pardir, |
18 'third_party', 'WebKit', 'Tools', 'Scripts'))) | 20 'third_party', 'WebKit', 'Tools', 'Scripts'))) |
19 | 21 |
20 # Include path when ran from a WebKit checkout. | 22 # Include path when ran from a WebKit checkout. |
21 sys.path.append( | 23 sys.path.append( |
22 os.path.abspath(os.path.join(os.path.dirname(__file__), | 24 os.path.abspath(os.path.join(os.path.dirname(__file__), |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 """Reports test results to the flakiness dashboard for Chrome for Android. | 207 """Reports test results to the flakiness dashboard for Chrome for Android. |
206 | 208 |
207 Args: | 209 Args: |
208 flakiness_dashboard_server: the server to upload the results to. | 210 flakiness_dashboard_server: the server to upload the results to. |
209 test_type: the type of the tests (as displayed by the flakiness dashboard). | 211 test_type: the type of the tests (as displayed by the flakiness dashboard). |
210 results: test results. | 212 results: test results. |
211 """ | 213 """ |
212 uploader = ResultsUploader(test_type) | 214 uploader = ResultsUploader(test_type) |
213 uploader.AddResults(results) | 215 uploader.AddResults(results) |
214 uploader.Upload(flakiness_dashboard_server) | 216 uploader.Upload(flakiness_dashboard_server) |
OLD | NEW |