OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # TODO(hinoka): Use logging. | 6 # TODO(hinoka): Use logging. |
7 | 7 |
8 import cStringIO | 8 import cStringIO |
9 import codecs | 9 import codecs |
10 import collections | 10 import collections |
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1445 print "Debugging info:" | 1445 print "Debugging info:" |
1446 debug_params = { | 1446 debug_params = { |
1447 'CURRENT_DIR': CURRENT_DIR, | 1447 'CURRENT_DIR': CURRENT_DIR, |
1448 'BUILDER_DIR': BUILDER_DIR, | 1448 'BUILDER_DIR': BUILDER_DIR, |
1449 'SLAVE_DIR': SLAVE_DIR, | 1449 'SLAVE_DIR': SLAVE_DIR, |
1450 'THIS_DIR': THIS_DIR, | 1450 'THIS_DIR': THIS_DIR, |
1451 'SCRIPTS_DIR': SCRIPTS_DIR, | 1451 'SCRIPTS_DIR': SCRIPTS_DIR, |
1452 'BUILD_DIR': BUILD_DIR, | 1452 'BUILD_DIR': BUILD_DIR, |
1453 'ROOT_DIR': ROOT_DIR, | 1453 'ROOT_DIR': ROOT_DIR, |
1454 'DEPOT_TOOLS_DIR': DEPOT_TOOLS_DIR, | 1454 'DEPOT_TOOLS_DIR': DEPOT_TOOLS_DIR, |
1455 }, | 1455 } |
1456 for k, v in sorted(debug_params.iteritems()): | 1456 for k, v in sorted(debug_params.iteritems()): |
1457 print "%s: %r" % (k, v) | 1457 print "%s: %r" % (k, v) |
1458 | 1458 |
1459 | 1459 |
1460 def main(): | 1460 def main(): |
1461 # Get inputs. | 1461 # Get inputs. |
1462 options, _ = parse_args() | 1462 options, _ = parse_args() |
1463 | 1463 |
1464 # Always run. This option will be removed in a later CL, but for now make sure | 1464 # Always run. This option will be removed in a later CL, but for now make sure |
1465 # that bot_update is ALWAYS set to run, no matter what. | 1465 # that bot_update is ALWAYS set to run, no matter what. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1504 except Exception: | 1504 except Exception: |
1505 # Unexpected failure. | 1505 # Unexpected failure. |
1506 emit_flag(options.flag_file) | 1506 emit_flag(options.flag_file) |
1507 raise | 1507 raise |
1508 else: | 1508 else: |
1509 emit_flag(options.flag_file) | 1509 emit_flag(options.flag_file) |
1510 | 1510 |
1511 | 1511 |
1512 if __name__ == '__main__': | 1512 if __name__ == '__main__': |
1513 sys.exit(main()) | 1513 sys.exit(main()) |
OLD | NEW |