Add download-topics support to bot_update
Tested by: * `python recipes.py test run` * Tested end-to-end by patching in this unsubmitted change in Skia's recipes with https://skia-review.googlesource.com/c/skia/+/532768 Bug: chromium:1319415 Change-Id: Ia1c9c495ef6482b3fdb494e1c1c9320541bcd0c5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3602901 Reviewed-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Ravi Mistry <rmistry@chromium.org>changes/01/3602901/15
parent
dc8ca44a3b
commit
f7e510b2f7
@ -0,0 +1,37 @@
|
|||||||
|
# Copyright 2022 The Chromium 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 import post_process
|
||||||
|
|
||||||
|
PYTHON_VERSION_COMPATIBILITY = 'PY2+3'
|
||||||
|
|
||||||
|
DEPS = [
|
||||||
|
'bot_update',
|
||||||
|
'gclient',
|
||||||
|
'recipe_engine/json',
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def RunSteps(api):
|
||||||
|
api.gclient.set_config('depot_tools')
|
||||||
|
api.bot_update.ensure_checkout()
|
||||||
|
api.bot_update.ensure_checkout(download_topics=True)
|
||||||
|
|
||||||
|
|
||||||
|
def GenTests(api):
|
||||||
|
yield (
|
||||||
|
api.test('basic') +
|
||||||
|
api.post_process(post_process.StatusSuccess) +
|
||||||
|
api.post_process(post_process.DropExpectation)
|
||||||
|
)
|
||||||
|
|
||||||
|
yield (
|
||||||
|
api.test('failure') +
|
||||||
|
api.override_step_data(
|
||||||
|
'bot_update',
|
||||||
|
api.json.output({'did_run': True}),
|
||||||
|
retcode=1) +
|
||||||
|
api.post_process(post_process.StatusAnyFailure) +
|
||||||
|
api.post_process(post_process.DropExpectation)
|
||||||
|
)
|
Loading…
Reference in New Issue