tools/perf/PRESUBMIT.py
def _CheckWprShaFiles(input_api, output_api):
  """Check whether the wpr sha files have matching URLs."""
  wpr_archive_shas = []
  for affected_file in input_api.AffectedFiles(include_deletes=False):
    filename = affected_file.AbsoluteLocalPath()
    if not filename.endswith('.sha1'):
      continue
    wpr_archive_shas.append(filename)
  return _RunValidationScript(
      input_api,
      output_api,
      'validate_wpr_archives',
      wpr_archive_shas
  )
Check whether the wpr sha files have matching URLs.
Check whether the wpr sha files have matching URLs.
Check whether the wpr sha files have matching URLs .
def _CheckWprShaFiles(input_api, output_api):
  wpr_archive_shas = []
  for affected_file in input_api.AffectedFiles(include_deletes=False):
    filename = affected_file.AbsoluteLocalPath()
    if not filename.endswith('.sha1'):
      continue
    wpr_archive_shas.append(filename)
  return _RunValidationScript(
      input_api,
      output_api,
      'validate_wpr_archives',
      wpr_archive_shas
  )
def _CheckWprShaFiles ( input_api , output_api ) : wpr_archive_shas = [ ] for affected_file in input_api . AffectedFiles ( include_deletes = False ) : filename = affected_file . AbsoluteLocalPath ( ) if not filename . endswith ( '.sha1' ) : continue wpr_archive_shas . append ( filename ) return _RunValidationScript ( input_api , output_api , 'validate_wpr_archives' , wpr_archive_shas )
Check whether the wpr sha files have matching URLs.
Check whether the wpr sha files have matching URLs .
"""Check whether the wpr sha files have matching URLs."""
input_api
output_api