Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: build/android/buildbot/tests/bb_run_bot_test.py

Issue 11666023: Move android buildbot test logic into python (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/buildbot/buildbot_functions.sh ('k') | build/android/pylib/constants.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import os
7 import subprocess
8 import sys
9
10 BUILDBOT_DIR = os.path.join(os.path.dirname(__file__), '..')
11 sys.path.append(BUILDBOT_DIR)
12 import bb_run_bot
13
14
15 def main():
16 code = 0
17 for bot_id in bb_run_bot.GetBotStepMap():
18 proc = subprocess.Popen(
19 [os.path.join(BUILDBOT_DIR, 'bb_run_bot.py'), '--bot-id', bot_id,
20 '--TESTING'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
21 _, err = proc.communicate()
22 code |= proc.returncode
23 if proc.returncode != 0:
24 print 'Error running bb_run_bot with id="%s"' % bot_id, err
25
26 return code
27
28
29 if __name__ == '__main__':
30 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/buildbot/buildbot_functions.sh ('k') | build/android/pylib/constants.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698