1# Copyright 2019 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from recipe_engine import post_process
6
7DEPS = [
8  'recipe_engine/path',
9
10  'gclient',
11]
12
13def RunSteps(api):
14  src_cfg = api.gclient.make_config(CACHE_DIR=api.path['cache'].join('git'))
15  api.gclient.sync(src_cfg)
16
17def GenTests(api):
18  yield api.test(
19      'no-json',
20      api.override_step_data('gclient sync', retcode=1),
21      # Should not fail with uncaught exception
22      api.post_process(post_process.ResultReasonRE, r'^(?!Uncaught Exception)'),
23      api.post_process(post_process.DropExpectation)
24  )
25