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

Side by Side Diff: build/android/pylib/base/test_result.py

Issue 11879031: [Android] Move base tests classes to pylib/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits 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
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 5
6 import json 6 import json
7 import logging 7 import logging
8 import os 8 import os
9 import re 9 import re
10 import time 10 import time
11 import traceback 11 import traceback
12 12
13 import buildbot_report 13 from pylib import buildbot_report
14 import constants 14 from pylib import constants
15 from pylib.utils import flakiness_dashboard_results_uploader 15 from pylib.utils import flakiness_dashboard_results_uploader
16 16
17 17
18 _STAGING_SERVER = 'chrome-android-staging' 18 _STAGING_SERVER = 'chrome-android-staging'
19 19
20 20
21 class BaseTestResult(object): 21 class BaseTestResult(object):
22 """A single result from a unit test.""" 22 """A single result from a unit test."""
23 23
24 def __init__(self, name, log): 24 def __init__(self, name, log):
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 272
273 if flakiness_server: 273 if flakiness_server:
274 self._LogToFlakinessDashboard(test_type, test_package, flakiness_server) 274 self._LogToFlakinessDashboard(test_type, test_package, flakiness_server)
275 275
276 def PrintAnnotation(self): 276 def PrintAnnotation(self):
277 """Print buildbot annotations for test results.""" 277 """Print buildbot annotations for test results."""
278 if self.failed or self.crashed or self.overall_fail or self.timed_out: 278 if self.failed or self.crashed or self.overall_fail or self.timed_out:
279 buildbot_report.PrintError() 279 buildbot_report.PrintError()
280 else: 280 else:
281 print 'Step success!' # No annotation needed 281 print 'Step success!' # No annotation needed
OLDNEW
« no previous file with comments | « build/android/pylib/base/sharded_tests_queue.py ('k') | build/android/pylib/base_test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698