Sha256: bb1c73ac6f50ae0185e3445e490ba33a0832465eaeabf5c06c05b2c9c2029622

Contents?: true

Size: 691 Bytes

Versions: 3

Compression:

Stored size: 691 Bytes

Contents

# 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 import recipe_api

class PresubmitApi(recipe_api.RecipeApi):
  def __call__(self, *args, **kwargs):
    """Return a presubmit step."""

    name = kwargs.pop('name', 'presubmit')

    kwargs.setdefault('env', {})
    kwargs['env'].setdefault('PATH', '%(PATH)s')
    kwargs['env']['PATH'] = self.m.path.pathsep.join([
        kwargs['env']['PATH'], str(self._module.PACKAGE_REPO_ROOT)])

    return self.m.python(
        name, self.package_repo_resource('presubmit_support.py'), list(args),
        **kwargs)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
libv8-5.0.71.48.3 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.0.71.48.2 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.0.71.48.0beta2 vendor/depot_tools/recipe_modules/presubmit/api.py