blob: ea66d14ce371970d14b331c6487c29bbac322578 [file] [log] [blame]
# Copyright 2019 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.
# Test whether a fresh checkout ('fetch dart') works.
DEPS = [
def RunSteps(api):
repo_url = api.tryserver.gerrit_change_repo_url
fetch_ref = api.tryserver.gerrit_change_fetch_ref
target_ref = api.tryserver.gerrit_change_target_ref
extra_sync_flags = []
if repo_url and fetch_ref and target_ref:
# Apply the patch on the target branch if it's a CL.
['--patch-ref', '%s@%s:%s' % (repo_url, target_ref, fetch_ref)])
# Check out the commit if it's not a CL.
revision =
extra_sync_flags.extend(["--revision", revision])
# The cache directory is intentionally omitted so this recipe properly
# simulates a completely fresh checkout. A cache directory might make things
# work when they're actually broken.
api.gclient.set_config('dart', CACHE_DIR=None)
def GenTests(api):
yield api.test('ci')
yield api.test(