Lines Matching refs:branch
32 """Pick branch name. If type is among BARE_BRANCHES, return type,
35 @param type: type of the branch, e.g., 'release', 'factory', or 'firmware'
112 "%s isn't a valid branch spec." % tot_spec)
246 @param branch_specs: an iterable of branch specifiers.
250 for branch in branch_specs:
251 if branch in BARE_BRANCHES:
255 if branch.startswith('>=R') or branch.startswith('==R'):
257 elif 'tot' in branch:
259 branch[branch.index('tot'):])
262 raise MalformedConfigEntry("%s isn't a valid branch spec." % branch)
273 given branch 'fits' with the specifications passed in here.
277 'factory', '==R18'], which limit the test to only one specific branch.
291 t._FitsSpec('R19') # False, branch does not equal to 18
301 This will run test using latest build on firmware branch, and the latest
307 This will run test using latest build on firmware branch, and the latest
319 @param branch_specs: a pre-vetted iterable of branch specifiers,
432 def _FitsSpec(self, branch):
433 """Checks if a branch is deemed OK by this instance's branch specs.
435 When called on a branch name, will return whether that branch
440 @param branch: the branch to check.
443 if branch in BARE_BRANCHES:
444 return branch in self._bare_branches
447 return version.LooseVersion(branch) == self._numeric_constraint
449 return version.LooseVersion(branch) >= self._numeric_constraint
451 return version.LooseVersion(branch) <= self._numeric_constraint
454 return version.LooseVersion(branch) >= self._numeric_constraint
473 """a pre-vetted iterable of branch specifiers,
602 firmware: use the ToT build in firmware branch.
603 cros: use the ToT build in release (ChromeOS) branch.
663 @param branch_builds: a dict mapping branch name to the build(s) to
664 install for that branch, e.g.
700 for branch, build in branch_builds.iteritems():
702 branch, self.branch_specs)
703 if self._FitsSpec(branch):
749 @param branch_builds: a dict mapping branch name to the build(s) to
750 install for that branch, e.g.