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

Unified Diff: build/android/pylib/run_java_tests.py

Issue 11348202: Specify the test files to be used as an argument to the instrumentation tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Specify the test files to be used as an argument to the instrumentation tests - code review fixes Created 8 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/buildbot/buildbot_functions.sh ('k') | build/android/pylib/test_options_parser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/run_java_tests.py
diff --git a/build/android/pylib/run_java_tests.py b/build/android/pylib/run_java_tests.py
index 4e61e2da3a2698bdc453730a78935c332fd3b1a0..7b5ea6e9ec796f506604f789273b6357db298e10 100644
--- a/build/android/pylib/run_java_tests.py
+++ b/build/android/pylib/run_java_tests.py
@@ -118,6 +118,7 @@ class TestRunner(BaseTestRunner):
self.build_type = options.build_type
self.install_apk = options.install_apk
+ self.test_data = options.test_data
self.save_perf_json = options.save_perf_json
self.screenshot_failures = options.screenshot_failures
self.wait_for_debugger = options.wait_for_debugger
@@ -162,12 +163,10 @@ class TestRunner(BaseTestRunner):
logging.warning('Already copied test files to device %s, skipping.',
self.device)
return
- host_test_files = [
- ('android_webview/test/data/device_files', 'webview'),
- ('content/test/data/android/device_files', 'content'),
- ('chrome/test/data/android/device_files', 'chrome')
- ]
- for (host_src, dst_layer) in host_test_files:
+ for dest_host_pair in self.test_data:
+ dst_src = dest_host_pair.split(':',1)
+ dst_layer = dst_src[0]
+ host_src = dst_src[1]
host_test_files_path = constants.CHROME_DIR + '/' + host_src
if os.path.exists(host_test_files_path):
self.adb.PushIfNeeded(host_test_files_path,
« no previous file with comments | « build/android/buildbot/buildbot_functions.sh ('k') | build/android/pylib/test_options_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698