mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
The builder calls ./tools/health-check for fmt/clippy/python checks. BUG=b:233913455 TEST=recipes.py run health_check Change-Id: Ia4b8298ef921b33a687d4e64956fc1f017649e7f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3668814 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
34 lines
912 B
Python
34 lines
912 B
Python
# Copyright 2022 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import re
|
|
from recipe_engine.post_process import Filter
|
|
|
|
PYTHON_VERSION_COMPATIBILITY = "PY3"
|
|
|
|
DEPS = [
|
|
"crosvm",
|
|
"recipe_engine/buildbucket",
|
|
"recipe_engine/context",
|
|
"recipe_engine/properties",
|
|
"recipe_engine/step",
|
|
]
|
|
|
|
|
|
def RunSteps(api):
|
|
api.crosvm.prepare_source()
|
|
api.crosvm.prepare_container()
|
|
with api.context(cwd=api.crosvm.source_dir):
|
|
for check in ("python", "misc", "fmt", "clippy"):
|
|
api.crosvm.step_in_container("Checking %s" % check, ["./tools/health-check", check])
|
|
|
|
|
|
def GenTests(api):
|
|
yield (
|
|
api.test(
|
|
"basic",
|
|
api.buildbucket.ci_build(project="crosvm/crosvm"),
|
|
)
|
|
+ api.post_process(Filter().include_re(r"Checking.*"))
|
|
)
|