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

Unified Diff: build/android/pylib/instrumentation/instrumentation_test_instance.py

Issue 1514453007: Show more stack trace in instrumentation tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add command-line flag. Created 5 years 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
Index: build/android/pylib/instrumentation/instrumentation_test_instance.py
diff --git a/build/android/pylib/instrumentation/instrumentation_test_instance.py b/build/android/pylib/instrumentation/instrumentation_test_instance.py
index b13fdb28f3400c07175e9010f90d207d3116bdb2..3d33b70d6da378ddef0b32df8e5bc07209759ae6 100644
--- a/build/android/pylib/instrumentation/instrumentation_test_instance.py
+++ b/build/android/pylib/instrumentation/instrumentation_test_instance.py
@@ -101,9 +101,11 @@ def GenerateTestResults(
current_result = None
+ test_class = None
+ test_method = None
for status_code, bundle in statuses:
- test_class = bundle.get('class', '')
- test_method = bundle.get('test', '')
+ test_class = bundle.get('class', '') or test_class
jbudorick 2015/12/11 21:04:30 nit if this logic sticks around: just do test_c
Peter Wen 2015/12/11 22:07:21 Acknowledged.
+ test_method = bundle.get('test', '') or test_method
jbudorick 2015/12/11 21:04:30 nit: same
Peter Wen 2015/12/11 22:07:21 Acknowledged.
if test_class and test_method:
test_name = '%s#%s' % (test_class, test_method)
else:

Powered by Google App Engine
This is Rietveld 408576698