| """Recipe for rolling submodule""" |
| |
| from PB.recipes.fuchsia.submodule_update import InputProperties |
| |
| DEPS = [ |
| "fuchsia/buildbucket_util", |
| "fuchsia/checkout", |
| "recipe_engine/buildbucket", |
| "recipe_engine/properties", |
| "recipe_engine/step", |
| ] |
| |
| PROPERTIES = InputProperties |
| |
| |
| def RunSteps(api, props): |
| checkout = api.checkout.fuchsia_with_options( |
| manifest=props.manifest, remote=props.remote |
| ) |
| revision = str(api.buildbucket.build.input.gitiles_commit.id) |
| api.step("print commit id", ["echo", revision]) |
| |
| |
| def GenTests(api): |
| yield ( |
| api.buildbucket_util.test("basic", repo="fuchsia") |
| + api.properties( |
| manifest="flower", remote="https://fuchsia.googlesource.com/integration" |
| ) |
| + api.post_check(lambda check, steps: check("print commit id" in steps)) |
| ) |