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

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: remove stale data from device 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
Index: build/android/test_runner.py
diff --git a/build/android/test_runner.py b/build/android/test_runner.py
index 52de8fd9c80ed2c546585aedf79b94fe5c2f7a7d..82a1021948bf8ce65d0d1993de6feefa454a2219 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -215,6 +215,9 @@ def AddGTestOptions(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.')
filter_group = group.add_mutually_exclusive_group()
filter_group.add_argument('-f', '--gtest_filter', '--gtest-filter',
@@ -335,6 +338,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)
@@ -388,7 +394,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
)
@@ -640,7 +647,8 @@ def _RunGTests(args, devices):
args.test_arguments,
args.timeout,
args.isolate_file_path,
- suite_name)
+ suite_name,
+ args.delete_stale_data)
runner_factory, tests = gtest_setup.Setup(gtest_options, devices)
results, test_exit_code = test_dispatcher.RunTests(

Powered by Google App Engine
This is Rietveld 408576698