2022-03-22 20:04:31 +00:00
|
|
|
#!/usr/bin/env python3
|
2022-09-13 17:55:17 +00:00
|
|
|
# Copyright 2022 The ChromiumOS Authors
|
2022-03-22 20:04:31 +00:00
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2022-08-16 19:57:01 +00:00
|
|
|
import sys
|
2022-09-07 17:52:15 +00:00
|
|
|
from impl.common import (
|
|
|
|
CROSVM_ROOT,
|
|
|
|
run_main,
|
2023-02-21 21:40:59 +00:00
|
|
|
cmd,
|
|
|
|
chdir,
|
2022-09-07 17:52:15 +00:00
|
|
|
)
|
2022-08-16 19:57:01 +00:00
|
|
|
|
2022-08-16 17:58:38 +00:00
|
|
|
|
2023-02-21 21:40:59 +00:00
|
|
|
def main(list_checks: bool = False, all: bool = False, *check_names: str):
|
2022-03-22 20:04:31 +00:00
|
|
|
chdir(CROSVM_ROOT)
|
2023-02-21 21:40:59 +00:00
|
|
|
if not list_checks:
|
|
|
|
print("Deprecated. Please use ./tools/presubmit instead")
|
|
|
|
if not check_names:
|
|
|
|
check_names = ("health_checks",)
|
|
|
|
cmd(
|
|
|
|
sys.executable,
|
|
|
|
"tools/presubmit",
|
|
|
|
"--no-delta" if all else None,
|
|
|
|
"--list-checks" if list_checks else None,
|
|
|
|
*check_names
|
|
|
|
).fg()
|
2022-03-22 20:04:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
run_main(main)
|