Android: adds an option to print all sharded steps.
This is necessary to decouple buildbots and the app repository. BUG= Review URL: https://chromiumcodereview.appspot.com/17616008 git-svn-id: http://src.chromium.org/svn/trunk/src/build@209681 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
f10e98618f
Коммит
3f285ee2a8
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче