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

Side by Side Diff: build/android/pylib/utils/flakiness_dashboard_results_uploader.py

Issue 11969014: Don't fail when the flakiness dashboard uploader can't be imported. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 13
14 # Include path when ran from a Chromium checkout.
14 sys.path.append( 15 sys.path.append(
15 os.path.abspath(os.path.join(os.path.dirname(__file__ ), 16 os.path.abspath(os.path.join(os.path.dirname(__file__),
16 os.pardir, os.pardir, os.pardir, os.pardir, 17 os.pardir, os.pardir, os.pardir, os.pardir,
17 'third_party', 'WebKit', 'Tools', 'Scripts'))) 18 'third_party', 'WebKit', 'Tools', 'Scripts')))
19
20 # Include path when ran from a WebKit checkout.
21 sys.path.append(
22 os.path.abspath(os.path.join(os.path.dirname(__file__),
23 os.pardir, os.pardir, os.pardir, os.pardir,
24 os.pardir, os.pardir, os.pardir,
25 'Tools', 'Scripts')))
26
18 from webkitpy.common.system import executive, filesystem 27 from webkitpy.common.system import executive, filesystem
19 from webkitpy.layout_tests.layout_package import json_results_generator 28 from webkitpy.layout_tests.layout_package import json_results_generator
20 29
21 #TODO(craigdh): pylib/utils/ should not depend on pylib/. 30 #TODO(craigdh): pylib/utils/ should not depend on pylib/.
22 from pylib import constants 31 from pylib import constants
23 32
24 33
25 # The JSONResultsGenerator gets the filesystem.join operation from the Port 34 # The JSONResultsGenerator gets the filesystem.join operation from the Port
26 # object. Creating a Port object requires specifying information that only 35 # object. Creating a Port object requires specifying information that only
27 # makes sense for running WebKit layout tests, so we provide a dummy object 36 # makes sense for running WebKit layout tests, so we provide a dummy object
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 """Reports test results to the flakiness dashboard for Chrome for Android. 205 """Reports test results to the flakiness dashboard for Chrome for Android.
197 206
198 Args: 207 Args:
199 flakiness_dashboard_server: the server to upload the results to. 208 flakiness_dashboard_server: the server to upload the results to.
200 test_type: the type of the tests (as displayed by the flakiness dashboard). 209 test_type: the type of the tests (as displayed by the flakiness dashboard).
201 results: test results. 210 results: test results.
202 """ 211 """
203 uploader = ResultsUploader(test_type) 212 uploader = ResultsUploader(test_type)
204 uploader.AddResults(results) 213 uploader.AddResults(results)
205 uploader.Upload(flakiness_dashboard_server) 214 uploader.Upload(flakiness_dashboard_server)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698