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

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

Issue 189133005: Rename chromium_testshell target to chrome_shell_apk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing import Created 6 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 """Module containing utility functions for reporting results.""" 5 """Module containing utility functions for reporting results."""
6 6
7 import logging 7 import logging
8 import os 8 import os
9 import re 9 import re
10 10
(...skipping 30 matching lines...) Expand all
41 (test_type, test_package, flakiness_server)) 41 (test_type, test_package, flakiness_server))
42 42
43 # TODO(frankf): Enable uploading for gtests. 43 # TODO(frankf): Enable uploading for gtests.
44 if test_type != 'Instrumentation': 44 if test_type != 'Instrumentation':
45 logging.warning('Invalid test type.') 45 logging.warning('Invalid test type.')
46 return 46 return
47 47
48 try: 48 try:
49 if flakiness_server == constants.UPSTREAM_FLAKINESS_SERVER: 49 if flakiness_server == constants.UPSTREAM_FLAKINESS_SERVER:
50 assert test_package in ['ContentShellTest', 50 assert test_package in ['ContentShellTest',
51 'ChromiumTestShellTest', 51 'ChromeShellTest',
52 'AndroidWebViewTest'] 52 'AndroidWebViewTest']
53 dashboard_test_type = ('%s_instrumentation_tests' % 53 dashboard_test_type = ('%s_instrumentation_tests' %
54 test_package.lower().rstrip('test')) 54 test_package.lower().rstrip('test'))
55 # Downstream server. 55 # Downstream server.
56 else: 56 else:
57 dashboard_test_type = 'Chromium_Android_Instrumentation' 57 dashboard_test_type = 'Chromium_Android_Instrumentation'
58 58
59 flakiness_dashboard_results_uploader.Upload( 59 flakiness_dashboard_results_uploader.Upload(
60 results, flakiness_server, dashboard_test_type) 60 results, flakiness_server, dashboard_test_type)
61 except Exception as e: 61 except Exception as e:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 # instrumenation test package using different annotations. 100 # instrumenation test package using different annotations.
101 if annotation and len(annotation) == 1: 101 if annotation and len(annotation) == 1:
102 suite_name = annotation[0] 102 suite_name = annotation[0]
103 else: 103 else:
104 suite_name = test_package 104 suite_name = test_package
105 _LogToFile(results, test_type, suite_name) 105 _LogToFile(results, test_type, suite_name)
106 106
107 if flakiness_server: 107 if flakiness_server:
108 _LogToFlakinessDashboard(results, test_type, test_package, 108 _LogToFlakinessDashboard(results, test_type, test_package,
109 flakiness_server) 109 flakiness_server)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698