2022-05-27 22:01:47 +00:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
from recipe_engine.post_process import Filter
|
|
|
|
|
|
|
|
PYTHON_VERSION_COMPATIBILITY = "PY3"
|
|
|
|
|
|
|
|
DEPS = [
|
|
|
|
"crosvm",
|
2022-06-03 20:40:42 +00:00
|
|
|
"recipe_engine/context",
|
2022-05-27 22:01:47 +00:00
|
|
|
"recipe_engine/step",
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
def RunSteps(api):
|
2022-06-22 21:13:09 +00:00
|
|
|
with api.crosvm.source_context():
|
2022-05-27 22:01:47 +00:00
|
|
|
api.step(
|
|
|
|
"Update Merges",
|
|
|
|
[
|
|
|
|
"vpython3",
|
|
|
|
"./tools/chromeos/merge_bot",
|
|
|
|
"--verbose",
|
|
|
|
"update-merges",
|
|
|
|
"--is-bot",
|
2022-06-03 20:40:42 +00:00
|
|
|
"origin/main",
|
2022-05-27 22:01:47 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
api.step(
|
|
|
|
"Update Dry Runs",
|
|
|
|
[
|
|
|
|
"vpython3",
|
|
|
|
"./tools/chromeos/merge_bot",
|
|
|
|
"--verbose",
|
|
|
|
"update-dry-runs",
|
|
|
|
"--is-bot",
|
2022-06-03 20:40:42 +00:00
|
|
|
"origin/main",
|
2022-05-27 22:01:47 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def GenTests(api):
|
|
|
|
yield (api.test("basic") + api.post_process(Filter().include_re(r"Update .*")))
|