Lines Matching refs:revision

55 def _ArchivePrebuilts(revision):
62 '%s/%s' % (GS_PREBUILTS_URL, 'r%s.zip' % revision)):
125 def _UpdateTestResultsLog(platform, revision, passed):
130 revision: The SVN revision number.
131 passed: Boolean indicating whether the tests passed at this revision.
133 assert isinstance(revision, int), 'The revision must be an integer'
137 assert revision not in log, 'Results already exist for revision %s' % revision
138 log[revision] = bool(passed)
166 def _RevisionState(test_results_log, revision):
167 """Check the state of tests at a given SVN revision.
169 Considers tests as having passed at a revision if they passed at revisons both
174 revision: The revision to check at.
179 assert isinstance(revision, int), 'The revision must be an integer'
181 # Return passed if the exact revision passed on Android.
182 if revision in test_results_log:
183 return 'passed' if test_results_log[revision] else 'failed'
184 # Tests were not run on this exact revision on Android.
185 index = bisect.bisect_right(keys, revision)
186 # Tests have not yet run on Android at or above this revision.
189 # No log exists for any prior revision, assume it failed.
198 def _ArchiveGoodBuild(platform, revision):
210 platform, _GetVersion(), revision)
265 for revision in candidates:
266 android_result = _RevisionState(android_test_results, revision)
268 print 'Android tests did not pass at revision', revision
270 print 'Android tests passed at revision', revision
271 candidate = 'chromedriver_%s_%s.%s.zip' % (platform, version, revision)
275 print 'Android tests have not run at a revision as recent as', revision
406 util.PrintAndFlush('Failed to get svn revision number for %s' %
428 def _WaitForLatestSnapshot(revision):
430 def _IsRevisionNumber(revision):
431 if isinstance(revision, int):
434 return revision.isdigit()
439 if revision is not None and snapshot_revision is not None:
440 if int(snapshot_revision) >= int(revision):
443 (revision, snapshot_revision))
445 util.PrintAndFlush('Got snapshot revision %s' % snapshot_revision)
484 '-r', '--revision', help='Chromium revision')
499 if not options.revision:
501 elif options.revision.isdigit():
502 commit_position = options.revision
504 commit_position = _GetCommitPositionFromGitHash(options.revision)
507 if not options.revision and options.update_log:
508 parser.error('Must supply a --revision with --update-log')
511 if not options.revision:
512 parser.error('Must supply a --revision')