Fix for Geolocation webTCT failures
[platform/framework/web/chromium-efl.git] / build / lacros / PRESUBMIT.py
1 # Copyright 2020 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 script for changes affecting //build/lacros"""
5
6
7
8 def _CommonChecks(input_api, output_api):
9   # Don't run lacros tests on Windows.
10   if input_api.is_windows:
11     return []
12   tests = input_api.canned_checks.GetUnitTestsInDirectory(
13       input_api, output_api, '.', [r'^.+_test\.py$'])
14   return input_api.RunTests(tests)
15
16
17 def CheckChangeOnUpload(input_api, output_api):
18   return _CommonChecks(input_api, output_api)
19
20
21 def CheckChangeOnCommit(input_api, output_api):
22   return _CommonChecks(input_api, output_api)