| 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 | 390 |
| 391 def _RunSmokeSuite(buildroot, results_dir): | 391 def _RunSmokeSuite(buildroot, results_dir): |
| 392 results_dir_in_chroot = os.path.join(buildroot, 'chroot', | 392 results_dir_in_chroot = os.path.join(buildroot, 'chroot', |
| 393 results_dir.lstrip('/')) | 393 results_dir.lstrip('/')) |
| 394 if os.path.exists(results_dir_in_chroot): | 394 if os.path.exists(results_dir_in_chroot): |
| 395 shutil.rmtree(results_dir_in_chroot) | 395 shutil.rmtree(results_dir_in_chroot) |
| 396 | 396 |
| 397 cwd = os.path.join(buildroot, 'src', 'scripts') | 397 cwd = os.path.join(buildroot, 'src', 'scripts') |
| 398 RunCommand(['bin/cros_run_vm_test', | 398 RunCommand(['bin/cros_run_vm_test', |
| 399 '--no_graphics', | 399 '--no_graphics', |
| 400 '--test_case=suite_Smoke', | |
| 401 '--results_dir_root=%s' % results_dir, | 400 '--results_dir_root=%s' % results_dir, |
| 401 'suite_Smoke', |
| 402 ], cwd=cwd, error_ok=False) | 402 ], cwd=cwd, error_ok=False) |
| 403 | 403 |
| 404 | 404 |
| 405 def _UprevPackages(buildroot, tracking_branch, revisionfile, board, overlays): | 405 def _UprevPackages(buildroot, tracking_branch, revisionfile, board, overlays): |
| 406 """Uprevs a package based on given revisionfile. | 406 """Uprevs a package based on given revisionfile. |
| 407 | 407 |
| 408 If revisionfile is set to None or does not resolve to an actual file, this | 408 If revisionfile is set to None or does not resolve to an actual file, this |
| 409 function will uprev all packages. | 409 function will uprev all packages. |
| 410 | 410 |
| 411 Keyword arguments: | 411 Keyword arguments: |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 except: | 709 except: |
| 710 # Send failure to master bot. | 710 # Send failure to master bot. |
| 711 if not buildconfig['master'] and buildconfig['important']: | 711 if not buildconfig['master'] and buildconfig['important']: |
| 712 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED) | 712 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED) |
| 713 | 713 |
| 714 raise | 714 raise |
| 715 | 715 |
| 716 | 716 |
| 717 if __name__ == '__main__': | 717 if __name__ == '__main__': |
| 718 main() | 718 main() |
| OLD | NEW |