You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
878 B
Python
36 lines
878 B
Python
# Copyright 2018 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
|
|
|
|
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(no_fetch_tags=True, enforce_fetch=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)
|
|
)
|