| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """CBuildbot is wrapper around the build process used by the pre-flight queue""" | 7 """CBuildbot is wrapper around the build process used by the pre-flight queue""" |
| 8 | 8 |
| 9 import errno | 9 import errno |
| 10 import heapq | 10 import heapq |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 options.chrome_rev, board) | 681 options.chrome_rev, board) |
| 682 # If we found nothing to rev, we're done here. | 682 # If we found nothing to rev, we're done here. |
| 683 if not chrome_atom_to_build: | 683 if not chrome_atom_to_build: |
| 684 return | 684 return |
| 685 | 685 |
| 686 elif buildconfig['uprev']: | 686 elif buildconfig['uprev']: |
| 687 _UprevPackages(buildroot, tracking_branch, revisionfile, | 687 _UprevPackages(buildroot, tracking_branch, revisionfile, |
| 688 buildconfig['board'], rev_overlays) | 688 buildconfig['board'], rev_overlays) |
| 689 | 689 |
| 690 _EnableLocalAccount(buildroot) | 690 _EnableLocalAccount(buildroot) |
| 691 # Doesn't rebuild without acquiring more source. | 691 _Build(buildroot, emptytree) |
| 692 if options.sync: | |
| 693 _Build(buildroot, emptytree) | |
| 694 | 692 |
| 695 if buildconfig['unittests'] and options.tests: | 693 if buildconfig['unittests'] and options.tests: |
| 696 _RunUnitTests(buildroot) | 694 _RunUnitTests(buildroot) |
| 697 | 695 |
| 698 _BuildImage(buildroot) | 696 _BuildImage(buildroot) |
| 699 | 697 |
| 700 if buildconfig['smoke_bvt'] and options.tests: | 698 if buildconfig['smoke_bvt'] and options.tests: |
| 701 _BuildVMImageForTesting(buildroot) | 699 _BuildVMImageForTesting(buildroot) |
| 702 test_results_dir = '/tmp/run_remote_tests.%s' % options.buildnumber | 700 test_results_dir = '/tmp/run_remote_tests.%s' % options.buildnumber |
| 703 try: | 701 try: |
| (...skipping 29 matching lines...) Expand all Loading... |
| 733 except: | 731 except: |
| 734 # Send failure to master bot. | 732 # Send failure to master bot. |
| 735 if not buildconfig['master'] and buildconfig['important']: | 733 if not buildconfig['master'] and buildconfig['important']: |
| 736 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED) | 734 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED) |
| 737 | 735 |
| 738 raise | 736 raise |
| 739 | 737 |
| 740 | 738 |
| 741 if __name__ == '__main__': | 739 if __name__ == '__main__': |
| 742 main() | 740 main() |
| OLD | NEW |