blob: 490ded536ef0075c08ee6d4f9979f50205043413 [file] [log] [blame]
# Copyright 2021 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Recipe for testing LUCI configs."""
DEPS = [
def RunSteps(api):
start_path = api.path['start_dir']
infra_path = start_path.join('infra')
# Checkout flutter/infra
api.git_checkout('', path=infra_path)
with api.context(cwd=infra_path):
api.git('log', 'log', '--oneline', '-n', '10')
# Validate LUCI config
config_path = infra_path.join('config', '')
'lucicfg validate',
['lucicfg', 'validate', '-fail-on-warnings', config_path],
def GenTests(api):
yield api.test('basic')
yield api.test(