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

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

Issue 1863353002: 🎯 Fail if an instrumentation test is missing size annotation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cd8617cfc15f7bb84fa79a60caa1a71261dd2de9..4ea374d669a9779330f14e232e2b50dc8a32f32e 100644
--- a/build/android/pylib/instrumentation/instrumentation_test_instance.py
+++ b/build/android/pylib/instrumentation/instrumentation_test_instance.py
@@ -547,7 +547,7 @@ class InstrumentationTestInstance(test_instance.TestInstance):
or unittest_util.FilterTestNames(t, self._test_filter))
def annotation_filter(all_annotations):
- if not self._annotations:
+ if not self._annotations or not all_annotations:
jbudorick 2016/04/07 02:30:11 I don't think this is logically consistent. A test
jbudorick 2016/04/07 02:31:26 (or 3, remove the default annotations entirely, bu
agrieve 2016/04/07 02:41:12 Should we add an exception when we detect a test m
jbudorick 2016/04/07 02:50:18 Honestly, I think the right answer for this is pro
return True
return any_annotation_matches(self._annotations, all_annotations)
« 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