Files
chromium_depot_tools/infra_lib/telemetry/PRESUBMIT.py
Struan Shrimpton c36eb432d9 Add the detector to telemetry library
The detector can be a pretty direct port from chromite. A lot of these
metrics aren't likely neccesary but will be good to have complete
trace protos rather than missings parts. This also creates the
presubmit and .vpython3 file necessary to run the unit tests

Bug: 326277821
Change-Id: I4dbeabbbced4715527201eca888948b07b6004ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5840599
Commit-Queue: Struan Shrimpton <sshrimp@google.com>
Reviewed-by: Terrence Reilly <treilly@google.com>
2024-09-10 21:52:28 +00:00

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)
])