OLD | NEW |
---|---|
(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 sys | |
7 import os | |
8 import subprocess | |
cmp
2013/01/09 02:16:28
sort alphanum
Isaac (away)
2013/01/09 03:10:15
Done.
| |
9 | |
10 BUILDBOT_DIR = os.path.join(os.path.dirname(__file__), '..') | |
11 sys.path.append(BUILDBOT_DIR) | |
12 import bb_run_bot | |
13 | |
14 def main(): | |
cmp
2013/01/09 02:16:28
insert empty line before line 14
Isaac (away)
2013/01/09 03:10:15
Done.
| |
15 code = 0 | |
16 for bot_id in bb_run_bot.GetBotStepMap(): | |
17 proc = subprocess.Popen( | |
18 [os.path.join(BUILDBOT_DIR, 'bb_run_bot.py'),'--bot-id', bot_id, | |
19 '--TESTING'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |
20 _, err = proc.communicate() | |
21 code |= proc.returncode | |
22 if proc.returncode != 0: | |
23 print 'Error running bb_run_bot with id="%s"' % bot_id, err | |
24 | |
25 return code | |
26 | |
27 if __name__ == '__main__': | |
cmp
2013/01/09 02:16:28
insert extra empty line before line 27
Isaac (away)
2013/01/09 03:10:15
Done. Looks like I forgot to run gpylint on this.
| |
28 sys.exit(main()) | |
OLD | NEW |