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. |