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

Side by Side Diff: bin/cbuildbot.py

Issue 3525022: Revert "Revert "Close tree when smoke bvt fails."" (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 2 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 re 10 import re
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 cwd = os.path.join(buildroot, 'src', 'scripts') 293 cwd = os.path.join(buildroot, 'src', 'scripts')
294 RunCommand(['./cros_run_unit_tests'], cwd=cwd, enter_chroot=True) 294 RunCommand(['./cros_run_unit_tests'], cwd=cwd, enter_chroot=True)
295 295
296 296
297 def _RunSmokeSuite(buildroot): 297 def _RunSmokeSuite(buildroot):
298 cwd = os.path.join(buildroot, 'src', 'scripts') 298 cwd = os.path.join(buildroot, 'src', 'scripts')
299 RunCommand(['bin/cros_run_vm_test', 299 RunCommand(['bin/cros_run_vm_test',
300 '--no_graphics', 300 '--no_graphics',
301 '--test_case', 301 '--test_case',
302 'suite_Smoke', 302 'suite_Smoke',
303 ], cwd=cwd, error_ok=True) 303 ], cwd=cwd, error_ok=False)
304 304
305 305
306 def _UprevPackages(buildroot, revisionfile, board): 306 def _UprevPackages(buildroot, revisionfile, board):
307 """Uprevs a package based on given revisionfile. 307 """Uprevs a package based on given revisionfile.
308 308
309 If revisionfile is set to None or does not resolve to an actual file, this 309 If revisionfile is set to None or does not resolve to an actual file, this
310 function will uprev all packages. 310 function will uprev all packages.
311 311
312 Keyword arguments: 312 Keyword arguments:
313 revisionfile -- string specifying a file that contains a list of revisions to 313 revisionfile -- string specifying a file that contains a list of revisions to
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 except: 453 except:
454 # Send failure to master bot. 454 # Send failure to master bot.
455 if not buildconfig['master'] and buildconfig['important']: 455 if not buildconfig['master'] and buildconfig['important']:
456 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED) 456 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED)
457 457
458 raise 458 raise
459 459
460 460
461 if __name__ == '__main__': 461 if __name__ == '__main__':
462 main() 462 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698