Index: build/android/test_runner.py |
diff --git a/build/android/test_runner.py b/build/android/test_runner.py |
index e16acbf16ed9005cb853efc6cc33e9d3636be13b..e4d5d791c1c22c31eb9215cb996ea22ab8ca81ba 100755 |
--- a/build/android/test_runner.py |
+++ b/build/android/test_runner.py |
@@ -113,6 +113,20 @@ def AddCommonOptions(parser): |
help='If set, will dump logcats recorded during test run ' |
'to directory. File names will be the device ids.') |
+ class FastLocalDevAction(argparse.Action): |
+ def __call__(self, parser, namespace, values, option_string=None): |
+ namespace.verbose_count = max(namespace.verbose_count, 1) |
+ namespace.num_retries = 0 |
+ namespace.enable_device_cache = True |
+ namespace.skip_clear_data = True |
+ namespace.extract_test_list_from_filter = True |
+ |
+ group.add_argument('--fast-local-dev', type=bool, nargs=0, |
+ action=FastLocalDevAction, |
+ help='Alias for: --verbose --num-retries=0 ' |
+ '--enable-device-cache --skip-clear-data ' |
+ '--extract-test-list-from-filter') |
+ |
def ProcessCommonOptions(args): |
"""Processes and handles all common options.""" |
run_tests_helper.SetLogLevel(args.verbose_count) |