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

Unified Diff: build/android/test_runner.py

Issue 1167693002: remove stale test data on the device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « build/android/pylib/instrumentation/test_options.py ('k') | 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 c69b531b8ed3389d6ae37931cdc08d355ab4736b..43387cb7ec3c11783c3d3a2b967697c6cd2a3a38 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -223,6 +223,9 @@ def AddGTestOptions(parser):
group.add_argument('--app-data-file-dir',
help='Host directory to which app data files will be'
' saved. Used with --app-data-file.')
+ group.add_argument('--delete-stale-data', dest='delete_stale_data',
+ action='store_true',
+ help='Delete stale test data on the device.')
filter_group = group.add_mutually_exclusive_group()
filter_group.add_argument('-f', '--gtest_filter', '--gtest-filter',
@@ -343,6 +346,9 @@ def AddInstrumentationTestOptions(parser):
dest='isolate_file_path',
help='.isolate file path to override the default '
'path')
+ group.add_argument('--delete-stale-data', dest='delete_stale_data',
+ action='store_true',
+ help='Delete stale test data on the device.')
AddCommonOptions(parser)
AddDeviceOptions(parser)
@@ -396,7 +402,8 @@ def ProcessInstrumentationOptions(args):
args.test_support_apk_path,
args.device_flags,
args.isolate_file_path,
- args.set_asserts
+ args.set_asserts,
+ args.delete_stale_data
)
@@ -650,7 +657,8 @@ def _RunGTests(args, devices):
args.isolate_file_path,
suite_name,
args.app_data_files,
- args.app_data_file_dir)
+ args.app_data_file_dir,
+ args.delete_stale_data)
runner_factory, tests = gtest_setup.Setup(gtest_options, devices)
results, test_exit_code = test_dispatcher.RunTests(
« no previous file with comments | « build/android/pylib/instrumentation/test_options.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698