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

Unified Diff: build/android/pylib/results/presentation/test_results_presentation.py

Issue 2849343002: [Android] Enable test_results_presentation for gtests (Closed)
Patch Set: fixes Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | testing/buildbot/chromium.linux.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/results/presentation/test_results_presentation.py
diff --git a/build/android/pylib/results/presentation/test_results_presentation.py b/build/android/pylib/results/presentation/test_results_presentation.py
index 07f30c2d463b607e9994b281992058bf31e3a138..c7394132d6989d0327ef0ff7ed601acf39aec10e 100755
--- a/build/android/pylib/results/presentation/test_results_presentation.py
+++ b/build/android/pylib/results/presentation/test_results_presentation.py
@@ -117,6 +117,8 @@ def code_search(test, cs_base_url):
def status_class(status):
"""Returns HTML class for test status."""
+ if not status:
+ return 'failure unknwon'
status = status.lower()
if status not in ('success', 'skipped'):
return 'failure %s' % status
@@ -151,7 +153,8 @@ def create_test_table(results_dict, cs_base_url):
test_run = []
test_run.extend([
- cell(data=result['status'], # status
+ cell(data=result['status'] or 'UNKNOWN',
+ # status
html_class=('center %s' %
status_class(result['status']))),
cell(data=result['elapsed_time_ms']), # elapsed_time_ms
« no previous file with comments | « no previous file | testing/buildbot/chromium.linux.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698