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

Side by Side Diff: build/android/pylib/results/flakiness_dashboard/results_uploader.py

Issue 757683002: [Android] Implement generic JSON results that match base/test/launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit issue Created 6 years 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 """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 #TODO(craigdh): pylib/utils/ should not depend on pylib/.
16 from pylib import cmd_helper 15 from pylib import cmd_helper
17 from pylib import constants 16 from pylib import constants
18 from pylib.utils import json_results_generator 17 from pylib.results.flakiness_dashboard import json_results_generator
19 from pylib.utils import repo_utils 18 from pylib.utils import repo_utils
20 19
21 20
22 21
23 class JSONResultsGenerator(json_results_generator.JSONResultsGeneratorBase): 22 class JSONResultsGenerator(json_results_generator.JSONResultsGeneratorBase):
24 """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
25 the test results server. 24 the test results server.
26 """ 25 """
27 def __init__(self, builder_name, build_name, build_number, tmp_folder, 26 def __init__(self, builder_name, build_name, build_number, tmp_folder,
28 test_results_map, test_results_server, test_type, master_name): 27 test_results_map, test_results_server, test_type, master_name):
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 """Reports test results to the flakiness dashboard for Chrome for Android. 169 """Reports test results to the flakiness dashboard for Chrome for Android.
171 170
172 Args: 171 Args:
173 results: test results. 172 results: test results.
174 flakiness_dashboard_server: the server to upload the results to. 173 flakiness_dashboard_server: the server to upload the results to.
175 test_type: the type of the tests (as displayed by the flakiness dashboard). 174 test_type: the type of the tests (as displayed by the flakiness dashboard).
176 """ 175 """
177 uploader = ResultsUploader(test_type) 176 uploader = ResultsUploader(test_type)
178 uploader.AddResults(results) 177 uploader.AddResults(results)
179 uploader.Upload(flakiness_dashboard_server) 178 uploader.Upload(flakiness_dashboard_server)
OLDNEW
« no previous file with comments | « build/android/pylib/results/flakiness_dashboard/json_results_generator.py ('k') | build/android/pylib/results/json_results.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698