| 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
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..968ebc234705f022baf5f27da7e8d2e20c02ec01
|
| --- /dev/null
|
| +++ b/build/android/buildbot/tests/bb_run_bot_test.py
|
| @@ -0,0 +1,30 @@
|
| +#!/usr/bin/env python
|
| +# 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.
|
| +
|
| +import os
|
| +import subprocess
|
| +import sys
|
| +
|
| +BUILDBOT_DIR = os.path.join(os.path.dirname(__file__), '..')
|
| +sys.path.append(BUILDBOT_DIR)
|
| +import bb_run_bot
|
| +
|
| +
|
| +def main():
|
| + code = 0
|
| + for bot_id in bb_run_bot.GetBotStepMap():
|
| + proc = subprocess.Popen(
|
| + [os.path.join(BUILDBOT_DIR, 'bb_run_bot.py'), '--bot-id', bot_id,
|
| + '--TESTING'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
| + _, err = proc.communicate()
|
| + code |= proc.returncode
|
| + if proc.returncode != 0:
|
| + print 'Error running bb_run_bot with id="%s"' % bot_id, err
|
| +
|
| + return code
|
| +
|
| +
|
| +if __name__ == '__main__':
|
| + sys.exit(main())
|
|
|