Chromium Code Reviews| Index: scripts/master/factory/chromeos_factory.py |
| =================================================================== |
| --- scripts/master/factory/chromeos_factory.py (revision 105558) |
| +++ scripts/master/factory/chromeos_factory.py (working copy) |
| @@ -57,7 +57,7 @@ |
| crostools_repo=_default_crostools, |
| chromite_repo=_default_chromite, |
| dry_run=False, chrome_root=None, factory=None, |
| - slave_manager=True, chromite_patch=None): |
| + slave_manager=True, chromite_patch=None, trybot=False): |
| self.buildroot = buildroot |
| self.crostools_repo = crostools_repo |
| self.chromite_repo = chromite_repo |
| @@ -73,6 +73,7 @@ |
| self.dry_run = dry_run |
| self.chrome_root = chrome_root |
| self.slave_manager = slave_manager |
| + self.trybot = trybot |
| if factory: |
| self.f_cbuild = factory |
| @@ -239,7 +240,7 @@ |
| if pass_revision: |
| cbuild_cmd.append(shell.WithProperties('--chrome_version=%(revision)s')) |
| - if self._branchAtOrAbove('0.12'): |
| + if self._branchAtOrAbove('0.12') and not self.trybot: |
| cbuild_cmd += ['--buildbot'] |
| if self.dry_run: |
| @@ -255,6 +256,8 @@ |
| # a typo. |
| cbuild_cmd.append(WithProperties('%s', 'clobber:+--clobber')) |
| + cbuild_cmd.append(WithProperties("--gerrit-patches='%(gerrit_patches)s'")) |
|
Peter Mayo
2011/10/15 00:57:42
I suggest guarding this with if self.trybot
I don
|
| + |
| name = self.type |
| if description_suffix: |
| description = '%s_%s' % (name, description_suffix) |