Sha256: 4e0f8493cf818d1f924f94330ec9d5f7baf3cf22cdea09c2517cd008ddb70103

Contents?: true

Size: 1.36 KB

Versions: 26

Compression:

Stored size: 1.36 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',
      codereview='rietveld',
      suffix='build')
  api.git_cl.set_description(
      'bammmm', patch_url='https://code.review/123', codereview='rietveld')
  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

26 entries across 26 versions & 1 rubygems

Version Path
libv8-7.8.279.23.0beta1 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-7.4.288.28.0beta1 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-7.3.492.27.3beta1 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-7.3.492.27.1 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-7.3.492.27.0 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-7.3.492.27.0beta1 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.7.288.46.1 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.7.288.46.0 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.7.288.46.1beta0 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.3.292.48.1 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.3.292.48.0 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.3.292.48.0beta2 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.3.292.48.0beta1 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.2.414.42.1 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.2.414.42.0 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.2.414.42.0beta1 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.0.286.54.3 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.0.286.54.2 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.0.286.54.1 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py
libv8-6.0.286.54.0 vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py