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

Unified Diff: build/android/test_runner.py

Issue 2688913003: Add shared preference file modification option to instrumentation test runner (Closed)
Patch Set: Address more comments Created 3 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
Index: build/android/test_runner.py
diff --git a/build/android/test_runner.py b/build/android/test_runner.py
index 08ec868e2b55155acc85e226f9088fae6134bda1..99711722442a312ce6ce0a519f62a3275c0f5bf1 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -400,6 +400,22 @@ def AddInstrumentationTestOptions(parser):
group.add_argument('--store-tombstones', dest='store_tombstones',
action='store_true',
help='Add tombstones in results if crash.')
+ group.add_argument('--shared-prefs-file', dest='shared_prefs_file',
+ type=os.path.realpath,
+ help='The relative path to a file containing JSON list '
+ 'of shared preference files to edit and how to do '
+ 'so. Example list: '
+ '[{'
+ ' "package": "com.package.example",'
+ ' "filename": "ExampleSettings.xml",'
+ ' "set": {'
+ ' "boolean_key_in_xml": true,'
+ ' "string_key_in_xml": "string_value"'
+ ' },'
+ ' "remove": ['
+ ' "key_in_xml_to_remove"'
+ ' ]'
+ '}]')
AddCommonOptions(parser)
AddDeviceOptions(parser)
« no previous file with comments | « build/android/pylib/local/device/local_device_instrumentation_test_run.py ('k') | build/android/test_runner.pydeps » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698