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

Unified Diff: devil/devil/android/tools/device_status.py

Issue 2055273002: [devil] Expose arguments added by device_status. (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devil/devil/android/tools/device_status.py
diff --git a/devil/devil/android/tools/device_status.py b/devil/devil/android/tools/device_status.py
index 442789f96325259180d084d4820f08e4f5223db5..760a9324942fe88acb95684cd635febf86740eee 100755
--- a/devil/devil/android/tools/device_status.py
+++ b/devil/devil/android/tools/device_status.py
@@ -232,8 +232,7 @@ def GetExpectedDevices(known_devices_files):
return expected_devices
-def main():
- parser = argparse.ArgumentParser()
+def AddArguments(parser):
parser.add_argument('--json-output',
help='Output JSON information into a specified file.')
parser.add_argument('--adb-path',
@@ -252,6 +251,9 @@ def main():
help='If set, overwrites known devices files wiht new '
'values.')
+def main():
+ parser = argparse.ArgumentParser()
+ AddArguments(parser)
args = parser.parse_args()
run_tests_helper.SetLogLevel(args.verbose)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698