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

Unified Diff: build/android/pylib/utils/report_results.py

Issue 12594038: [Android] Shorten long suite names in test reporting step. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/utils/report_results.py
diff --git a/build/android/pylib/utils/report_results.py b/build/android/pylib/utils/report_results.py
index 9ac05ebd4a7ced955a4b40f9815139ececbb2560..9ac2620b361bd40bf748cd14e8010de9ac0d0d6e 100644
--- a/build/android/pylib/utils/report_results.py
+++ b/build/android/pylib/utils/report_results.py
@@ -31,7 +31,9 @@ def _LogToFile(results, test_type, test_suite, build_type):
logging.info('Writing results to %s.' % full_file_name)
with open(full_file_name, 'a') as log_file:
- print >> log_file, '%s%s' % (test_suite.ljust(30), results.GetShortForm())
+ shortened_suite_name = test_suite[:25] + (test_suite[25:] and '...')
+ print >> log_file, '%s%s' % (shortened_suite_name.ljust(30),
+ results.GetShortForm())
def _LogToFlakinessDashboard(results, test_type, test_package,
« 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