Sha256: 2c6c9be1353d8df6f37a7137eda195c3c1e2835caeae03ea01bca619f7a53299

Contents?: true

Size: 1.1 KB

Versions: 8

Compression:

Stored size: 1.1 KB

Contents

# Copyright 2017 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 import post_process
from recipe_engine import recipe_api


DEPS = [
  'gclient',
  'recipe_engine/properties',
]


PROPERTIES = {
  'patch_project': recipe_api.Property(),
}


def RunSteps(api, patch_project):
  src_cfg = api.gclient.make_config(CACHE_DIR='[ROOT]/git_cache')
  soln = src_cfg.solutions.add()
  soln.name = 'src'
  soln.url = 'https://chromium.googlesource.com/chromium/src.git'
  src_cfg.patch_projects['v8'] = ('src/v8', 'HEAD')
  src_cfg.patch_projects['v8/v8'] = ('src/v8', 'HEAD')
  api.gclient.c = src_cfg

  patch_root = api.gclient.calculate_patch_root(patch_project)

  api.gclient.set_patch_project_revision(patch_project)


def GenTests(api):
  yield (
      api.test('chromium') +
      api.properties(patch_project='chromium') +
      api.post_process(post_process.DropExpectation)
  )

  yield (
      api.test('v8') +
      api.properties(patch_project='v8') +
      api.post_process(post_process.DropExpectation)
  )

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
libv8-6.0.286.54.1 vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py
libv8-6.0.286.54.0 vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py
libv8-6.0.286.54.0beta2 vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py
libv8-6.0.286.54.0beta1 vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py
libv8-6.0.286.44.0beta1 vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py
libv8-5.9.211.38.1 vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py
libv8-5.9.211.38.0 vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py
libv8-5.9.211.38.0beta0 vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py