Sha256: 33cea9d6174626dfe7dda29a54b74c157dc427c1ef458a4d9d40bc7cc02b82e4

Contents?: true

Size: 1.31 KB

Versions: 2

Compression:

Stored size: 1.31 KB

Contents

# -*- coding: utf-8 -*-
# Copyright 2016 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.config_types import Path


DEPS = [
  'git_cl',
  'recipe_engine/path',
  'recipe_engine/raw_io',
  'recipe_engine/step',
]


def RunSteps(api):
  api.git_cl.upload("Do the thing foobar\nNow with emoji: 😄")
  api.git_cl.issue()
  result = api.git_cl.get_description(
      patch_url='https://code.review/123',
      suffix='build')
  api.git_cl.set_description(
      'bammmm', patch_url='https://code.review/123')
  api.step('echo', ['echo', result.stdout])

  api.git_cl.set_config('basic')
  api.git_cl.c.repo_location = api.path.mkdtemp('fakerepo')

  api.step('echo', ['echo', api.git_cl.get_description().stdout])

  api.git_cl.set_description('new description woo')

  api.step('echo', ['echo', api.git_cl.get_description().stdout])

def GenTests(api):
  yield (
      api.test('basic') +
      api.override_step_data(
          'git_cl description (build)', stdout=api.raw_io.output('hi')) +
      api.override_step_data(
          'git_cl description', stdout=api.raw_io.output('hey')) +
      api.override_step_data(
          'git_cl description (2)', stdout=api.raw_io.output(
              'new description woo'))
  )

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
libv8-8.4.255.0.1 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-8.4.255.0 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py