xref: /aosp_15_r20/external/crosvm/infra/recipes/update_chromeos_merges.py (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1# Copyright 2022 The ChromiumOS Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from recipe_engine.post_process import Filter
6
7DEPS = [
8    "crosvm",
9    "recipe_engine/context",
10    "recipe_engine/step",
11]
12
13
14def RunSteps(api):
15    with api.crosvm.source_context():
16        api.step(
17            "Update Merges",
18            [
19                "vpython3",
20                "./tools/chromeos/merge_bot",
21                "--verbose",
22                "update-merges",
23                "--is-bot",
24                "origin/main",
25            ],
26        )
27
28
29def GenTests(api):
30    yield (api.test("basic") + api.post_process(Filter().include_re(r"Update .*")))
31