PRESUBMIT.py 570 B

12345678910111213141516
  1. # Copyright 2024 The Chromium Authors
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. PRESUBMIT_VERSION = '2.0.0'
  5. def CheckTests(input_api, output_api):
  6. if input_api.platform.startswith(('cygwin', 'win32')):
  7. return []
  8. return input_api.RunTests([
  9. input_api.Command(name='telemetry',
  10. cmd=['vpython3', '-m', 'pytest', '.'],
  11. kwargs={'cwd': input_api.PresubmitLocalPath()},
  12. message=output_api.PresubmitError)
  13. ])