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

Unified Diff: build/android/single_test_runner.py

Issue 10391172: Fix test filter filename for APK based tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/single_test_runner.py
diff --git a/build/android/single_test_runner.py b/build/android/single_test_runner.py
index 503088cdfb035122b45484ac4f78c80a336f9c8b..69417e6da77bc11a7a5e338457a81c0f10f34559 100644
--- a/build/android/single_test_runner.py
+++ b/build/android/single_test_runner.py
@@ -48,11 +48,13 @@ class SingleTestRunner(BaseTestRunner):
self.fast_and_loose = fast_and_loose
if os.path.splitext(test_suite)[1] == '.apk':
+ self._apk_test_suite = True;
Yaron 2012/05/16 21:23:55 This violates the point of having TestPackage and
John Grabowski 2012/05/16 22:24:17 agree. E.g. use FilterName() as an overridable me
nilesh 2012/05/16 22:36:54 Done.
self.test_package = TestPackageApk(
self.adb, device,
test_suite, timeout, rebaseline, performance_test, cleanup_test_files,
tool, self.dump_debug_info)
else:
+ self._apk_test_suite = False;
self.test_package = TestPackageExecutable(
self.adb, device,
test_suite, timeout, rebaseline, performance_test, cleanup_test_files,
@@ -77,6 +79,10 @@ class SingleTestRunner(BaseTestRunner):
"""Returns the filename of gtest filter."""
filter_dir = os.path.join(sys.path[0], 'gtest_filter')
filter_name = self.test_package.test_suite_basename + '_disabled'
+ if self._apk_test_suite:
John Grabowski 2012/05/16 22:24:17 Staging/transition makes for odd choices. In the f
+ # APK test suite names end with '-debug.apk'
+ filter_name = self.test_package.test_suite_basename.rsplit(
+ '-debug', 1)[0] + '_disabled'
disabled_filter = os.path.join(filter_dir, filter_name)
return disabled_filter
« 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