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

Unified Diff: build/android/bb_run_sharded_steps.py

Issue 17616008: Android: adds an option to print all sharded steps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ret code Created 7 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: build/android/bb_run_sharded_steps.py
diff --git a/build/android/bb_run_sharded_steps.py b/build/android/bb_run_sharded_steps.py
index 75bdee8c5a9a05f163617f8cd48ed1cbd8b266ea..7a06155b137c8534adcc5030489160bb0cb3c3f8 100755
--- a/build/android/bb_run_sharded_steps.py
+++ b/build/android/bb_run_sharded_steps.py
@@ -153,6 +153,15 @@ def _PrintStepOutput(step_name):
return result['exit_code']
+def _PrintAllStepsOutput(steps):
+ with file(steps, 'r') as f:
+ steps = json.load(f)
+ ret = 0
+ for step_name in steps.keys():
+ ret |= _PrintStepOutput(step_name)
+ return ret
+
+
def _KillPendingServers():
for retry in range(5):
for server in ['lighttpd', 'web-page-replay']:
@@ -177,9 +186,14 @@ def main(argv):
parser.add_option('-p', '--print_results',
help='Only prints the results for the previously '
'executed step, do not run it again.')
+ parser.add_option('-P', '--print_all',
+ help='Only prints the results for the previously '
+ 'executed steps, do not run them again.')
options, urls = parser.parse_args(argv)
if options.print_results:
return _PrintStepOutput(options.print_results)
+ if options.print_all:
+ return _PrintAllStepsOutput(options.print_all)
# At this point, we should kill everything that may have been left over from
# previous runs.
« 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