| # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| BUILDBOT_DIR = os.path.join(os.path.dirname(__file__), '..') |
| sys.path.append(BUILDBOT_DIR) |
| def RunBotProcesses(bot_process_map): |
| for bot, proc in bot_process_map: |
| _, err = proc.communicate() |
| print 'Error running the bot script with id="%s"' % bot, err |
| [os.path.join(BUILDBOT_DIR, 'bb_run_bot.py'), '--bot-id', bot, |
| '--testing'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)) |
| for bot in bb_run_bot.GetBotStepMap()] |
| return RunBotProcesses(procs) |
| if __name__ == '__main__': |