Chromium Code Reviews| 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..60b9c3e2ffe3814416abfdce52c5ef40c9002feb 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) |
|
iannucci
2013/06/25 02:16:33
what's the meaning of adding the retcodes together
bulach
2013/06/28 01:54:27
good point! done.
|
| + 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. |