| Index: build/android/buildbot/tests/bb_run_bot_test.py
|
| diff --git a/build/android/buildbot/tests/bb_run_bot_test.py b/build/android/buildbot/tests/bb_run_bot_test.py
|
| index 3b028795ba15d470af13ccee4eeb41b5d4e7df40..1d44e7e2165d82dd78c3a9fb81d055cc30d15ed4 100755
|
| --- a/build/android/buildbot/tests/bb_run_bot_test.py
|
| +++ b/build/android/buildbot/tests/bb_run_bot_test.py
|
| @@ -11,14 +11,13 @@ BUILDBOT_DIR = os.path.join(os.path.dirname(__file__), '..')
|
| sys.path.append(BUILDBOT_DIR)
|
| import bb_run_bot
|
|
|
| -
|
| -def main():
|
| +def RunBotsWithTesting(bot_step_map):
|
| code = 0
|
| procs = [
|
| (bot, subprocess.Popen(
|
| [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()]
|
| + for bot in bot_step_map]
|
| for bot, proc in procs:
|
| _, err = proc.communicate()
|
| code |= proc.returncode
|
| @@ -28,5 +27,9 @@ def main():
|
| return code
|
|
|
|
|
| +def main():
|
| + return RunBotsWithTesting(bb_run_bot.GetBotStepMap())
|
| +
|
| +
|
| if __name__ == '__main__':
|
| sys.exit(main())
|
|
|