You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/infra_lib/telemetry/PRESUBMIT.py

17 lines
570 B
Python

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