Chromium Code Reviews| Index: bin/cbuildbot.py |
| diff --git a/bin/cbuildbot.py b/bin/cbuildbot.py |
| index d49fa06dc6db2039fcc2ce7be0ab742a27b1f82b..84c02438fc5a2c899b2056388a0e749be345fca7 100755 |
| --- a/bin/cbuildbot.py |
| +++ b/bin/cbuildbot.py |
| @@ -532,7 +532,8 @@ def _ResolveOverlays(buildroot, overlays): |
| elif overlays == 'both': |
| paths = [public_overlay, private_overlay] |
| else: |
| - Die('Incorrect overlay configuration: %s' % overlays) |
| + Info('No overlays found.') |
| + paths = [] |
| return paths |
| @@ -623,11 +624,16 @@ def main(): |
| try: |
| # Calculate list of overlay directories. |
| - overlays = _ResolveOverlays(buildroot, buildconfig['overlays']) |
| + rev_overlays = _ResolveOverlays(buildroot, buildconfig['rev_overlays']) |
| + push_overlays = _ResolveOverlays(buildroot, buildconfig['push_overlays']) |
| + # We cannot push to overlays that we don't rev. |
| + assert set(push_overlays).issubset(set(rev_overlays)) |
|
David James
2010/12/02 02:06:59
Maybe we should also check that push_overlays must
sosa
2010/12/02 21:47:49
Done.
|
| + |
| board = buildconfig['board'] |
| old_binhost = None |
| - _PreFlightRinse(buildroot, buildconfig['board'], tracking_branch, overlays) |
| + _PreFlightRinse(buildroot, buildconfig['board'], tracking_branch, |
| + rev_overlays) |
| chroot_path = os.path.join(buildroot, 'chroot') |
| boardpath = os.path.join(chroot_path, 'build', board) |
| if options.sync: |
| @@ -642,8 +648,7 @@ def main(): |
| RunCommand(['sudo', 'rm', '-rf', boardpath]) |
| # Check that all overlays can be found. |
| - for path in overlays: |
| - assert ':' not in path, 'Overlay must not contain colons: %s' % path |
|
David James
2010/12/02 02:06:59
Thanks for cleaning this up -- it wasn't terribly
|
| + for path in rev_overlays: |
| if not os.path.isdir(path): |
| Die('Missing overlay: %s' % path) |
| @@ -659,7 +664,7 @@ def main(): |
| options.chrome_rev) |
| elif buildconfig['uprev']: |
| _UprevPackages(buildroot, tracking_branch, revisionfile, |
| - buildconfig['board'], overlays) |
| + buildconfig['board'], rev_overlays) |
| _EnableLocalAccount(buildroot) |
| # Doesn't rebuild without acquiring more source. |
| @@ -681,7 +686,7 @@ def main(): |
| _RunSmokeSuite(buildroot, test_results_dir) |
| finally: |
| if not options.debug: |
| - archive_full_path=os.path.join(options.gsutil_archive, |
| + archive_full_path = os.path.join(options.gsutil_archive, |
| str(options.buildnumber)) |
| _ArchiveTestResults(buildroot, buildconfig['board'], |
| test_results_dir=test_results_dir, |
| @@ -694,10 +699,10 @@ def main(): |
| if buildconfig['master']: |
| # Master bot needs to check if the other slaves completed. |
| if cbuildbot_comm.HaveSlavesCompleted(config): |
| - _UploadPrebuilts(buildroot, board, buildconfig['overlays'], |
| + _UploadPrebuilts(buildroot, board, rev_overlays, |
|
David James
2010/12/02 02:06:59
_UploadPrebuilts expects a string for the third ar
sosa
2010/12/02 21:47:49
Done.
|
| [new_binhost]) |
| _UprevPush(buildroot, tracking_branch, buildconfig['board'], |
| - overlays, options.debug) |
| + push_overlays, options.debug) |
| else: |
| Die('CBUILDBOT - One of the slaves has failed!!!') |