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

Unified Diff: build/android/pylib/uiautomator/test_runner.py

Issue 732423002: Update from chromium https://crrev.com/304586 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « build/android/pylib/instrumentation/test_runner.py ('k') | build/android/pylib/utils/proguard.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/uiautomator/test_runner.py
diff --git a/build/android/pylib/uiautomator/test_runner.py b/build/android/pylib/uiautomator/test_runner.py
index f4e573063d3b53c0348651767557959b5845b41e..c7239b436346fc34feb441426e0e662231d3b920 100644
--- a/build/android/pylib/uiautomator/test_runner.py
+++ b/build/android/pylib/uiautomator/test_runner.py
@@ -63,7 +63,8 @@ class TestRunner(instr_test_runner.TestRunner):
def _RunTest(self, test, timeout):
self.device.ClearApplicationState(self._package)
if self.flags:
- if 'Feature:FirstRunExperience' in self.test_pkg.GetTestAnnotations(test):
+ annotations = self.test_pkg.GetTestAnnotations(test)
+ if ('FirstRunExperience' == annotations(test).get('Feature', None)):
self.flags.RemoveFlags(['--disable-fre'])
else:
self.flags.AddFlags(['--disable-fre'])
« no previous file with comments | « build/android/pylib/instrumentation/test_runner.py ('k') | build/android/pylib/utils/proguard.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698