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 |