blob: d0abf4aab485a407f3739b1e8b0e5f363e4a142e [file] [log] [blame]
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Chromium presubmit script for Web Bluetooth layout tests.
def CheckGeneratedFiles(input_api, output_api):
test_path = input_api.os_path.join(input_api.PresubmitLocalPath(),
cmd_name = 'generate_test'
cmd = [input_api.python_executable, test_path]
test_cmd = input_api.Command(
name=cmd_name, cmd=cmd, kwargs={}, message=output_api.PresubmitError)
if input_api.verbose:
print('Running ' + cmd_name)
return input_api.RunTests([test_cmd])
def CheckChangeOnUpload(input_api, output_api):
return CheckGeneratedFiles(input_api, output_api)