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

Unified Diff: build/android/test_runner.py

Issue 22456003: [Andriod] Fixes monkey command line (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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/test_runner.py
diff --git a/build/android/test_runner.py b/build/android/test_runner.py
index 8655720810882b7b9c3d834348890352510315bb..c60b7dca3433af421de9f487bc78539dedad01fd 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -357,9 +357,17 @@ def ProcessUIAutomatorOptions(options, error_func):
def AddMonkeyTestOptions(option_parser):
"""Adds monkey test options to |option_parser|."""
+
+ option_parser.usage = '%prog monkey [options]'
+ option_parser.command_list = []
+ option_parser.example = (
+ '%prog monkey --package-name=org.chromium.content_shell_apk'
+ ' --activity-name=org.chromium.content_shell_apk.ContentShellActivity')
frankf 2013/08/08 01:26:12 You can just use .ContentShellActivity for short.
gkanwar1 2013/08/08 01:33:30 Done.
+
option_parser.add_option('--package-name', help='Allowed package.')
option_parser.add_option(
- '--activity-name', default='com.google.android.apps.chrome.Main',
+ '--activity-name',
+ default='org.chromium.content_shell_apk.ContentShellActivity',
frankf 2013/08/08 01:26:12 Let's not have a default at all.
gkanwar1 2013/08/08 01:33:30 Done.
help='Name of the activity to start [default: %default].')
option_parser.add_option(
'--event-count', default=10000, type='int',
« 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