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

Unified Diff: build/android/test_runner.py

Issue 1661253002: test_runner.py Add --fast-local-dev flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tests-no-clear-data
Patch Set: rebase Created 4 years, 10 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 | build/config/android/internal_rules.gni » ('j') | 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 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)
« no previous file with comments | « no previous file | build/config/android/internal_rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698