blob: 1d79b48f8da7d0adae8621ba2a5da396c2f01b30 [file] [log] [blame]
Avi Drissmancd038c92022-09-29 21:35:501# Copyright 2018 The Chromium Authors
Victor Costan3d8ec4872018-02-06 23:56:152# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4"""Presubmit tests for /third_party/sqlite.
5
6Runs Python unit tests in /third_party/sqlite/scripts on upload.
7"""
8
Victor Costane425e452021-05-26 19:24:369PRESUBMIT_VERSION = '2.0.0'
Victor Costan3d8ec4872018-02-06 23:56:1510
Victor Costane425e452021-05-26 19:24:3611def CheckPythonUnittestsPass(input_api, output_api):
Chris Mumford4fdc5f312020-04-14 16:53:5212 results = []
13 this_dir = input_api.PresubmitLocalPath()
Victor Costan3d8ec4872018-02-06 23:56:1514
Chris Mumford4fdc5f312020-04-14 16:53:5215 results += input_api.RunTests(
16 input_api.canned_checks.GetUnitTestsInDirectory(
17 input_api,
18 output_api,
19 input_api.os_path.join(this_dir, 'scripts'),
Josip Sokcevic8b6cc432020-08-05 17:45:3320 files_to_check=['.*unittest.py$'],
Takuto Ikuta40def482023-06-02 02:23:4921 env=None))
Victor Costan3d8ec4872018-02-06 23:56:1522
Chris Mumford4fdc5f312020-04-14 16:53:5223 return results