tryserver recipe_module: Add get_tags.
Lets you get CL tags for a given CL. BUG=591172 Review-Url: https://codereview.chromium.org/1915833003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@300658 0039d316-1c4b-4281-b951-d872f2087c98changes/30/350330/1
parent
958ba53410
commit
456ca7f0c2
@ -0,0 +1,42 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"ls",
|
||||||
|
"RECIPE_PACKAGE_REPO[depot_tools]/download_from_google_storage.py"
|
||||||
|
],
|
||||||
|
"name": "download_from_google_storage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"ls",
|
||||||
|
"RECIPE_PACKAGE_REPO[depot_tools]/cros"
|
||||||
|
],
|
||||||
|
"name": "cros"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"ls",
|
||||||
|
"RECIPE_PACKAGE_REPO[depot_tools]/gn.py"
|
||||||
|
],
|
||||||
|
"name": "gn_py_path"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"ls",
|
||||||
|
"RECIPE_PACKAGE_REPO[depot_tools]/gsutil.py"
|
||||||
|
],
|
||||||
|
"name": "gsutil_py_path"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"ls",
|
||||||
|
"RECIPE_PACKAGE_REPO[depot_tools]/ninja"
|
||||||
|
],
|
||||||
|
"name": "ninja_path"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "$result",
|
||||||
|
"recipe_result": null,
|
||||||
|
"status_code": 0
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,42 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"ls",
|
||||||
|
"RECIPE_PACKAGE_REPO[depot_tools]\\download_from_google_storage.py"
|
||||||
|
],
|
||||||
|
"name": "download_from_google_storage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"ls",
|
||||||
|
"RECIPE_PACKAGE_REPO[depot_tools]\\cros"
|
||||||
|
],
|
||||||
|
"name": "cros"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"ls",
|
||||||
|
"RECIPE_PACKAGE_REPO[depot_tools]\\gn.py"
|
||||||
|
],
|
||||||
|
"name": "gn_py_path"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"ls",
|
||||||
|
"RECIPE_PACKAGE_REPO[depot_tools]\\gsutil.py"
|
||||||
|
],
|
||||||
|
"name": "gsutil_py_path"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"ls",
|
||||||
|
"RECIPE_PACKAGE_REPO[depot_tools]\\ninja.exe"
|
||||||
|
],
|
||||||
|
"name": "ninja_path"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "$result",
|
||||||
|
"recipe_result": null,
|
||||||
|
"status_code": 0
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,34 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
DEPS = [
|
||||||
|
'depot_tools',
|
||||||
|
'recipe_engine/step',
|
||||||
|
'recipe_engine/path',
|
||||||
|
'recipe_engine/platform',
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def RunSteps(api):
|
||||||
|
api.step(
|
||||||
|
'download_from_google_storage',
|
||||||
|
['ls', api.depot_tools.download_from_google_storage_path])
|
||||||
|
|
||||||
|
api.step('cros', ['ls', api.depot_tools.cros_path])
|
||||||
|
|
||||||
|
api.step(
|
||||||
|
'gn_py_path', ['ls', api.depot_tools.gn_py_path])
|
||||||
|
|
||||||
|
api.step(
|
||||||
|
'gsutil_py_path', ['ls', api.depot_tools.gsutil_py_path])
|
||||||
|
|
||||||
|
api.step(
|
||||||
|
'ninja_path', ['ls', api.depot_tools.ninja_path])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def GenTests(api):
|
||||||
|
yield api.test('basic')
|
||||||
|
|
||||||
|
yield api.test('win') + api.platform('win', 32)
|
@ -0,0 +1,59 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"python",
|
||||||
|
"-u",
|
||||||
|
"RECIPE_PACKAGE_REPO[depot_tools]/git_footers.py",
|
||||||
|
"--json",
|
||||||
|
"/path/to/tmp/json"
|
||||||
|
],
|
||||||
|
"name": "parse description",
|
||||||
|
"stdin": "hihihi\nfoo:bar\nbam:baz",
|
||||||
|
"~followup_annotations": [
|
||||||
|
"@@@STEP_LOG_LINE@json.output@{@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"Foo\": [@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"bar\"@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ ]@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@}@@@",
|
||||||
|
"@@@STEP_LOG_END@json.output@@@"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"echo",
|
||||||
|
"OrderedDict([('Foo', ['bar'])])"
|
||||||
|
],
|
||||||
|
"name": "patch_text test"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"python",
|
||||||
|
"-u",
|
||||||
|
"RECIPE_PACKAGE_REPO[depot_tools]/git_footers.py",
|
||||||
|
"--json",
|
||||||
|
"/path/to/tmp/json"
|
||||||
|
],
|
||||||
|
"name": "parse description (2)",
|
||||||
|
"stdin": "hihihi\nfoo:bar\nbam:baz",
|
||||||
|
"~followup_annotations": [
|
||||||
|
"@@@STEP_LOG_LINE@json.output@{@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"Foo\": [@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"bar\"@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ ]@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@}@@@",
|
||||||
|
"@@@STEP_LOG_END@json.output@@@"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"echo",
|
||||||
|
"['bar']"
|
||||||
|
],
|
||||||
|
"name": "patch_text test (2)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "$result",
|
||||||
|
"recipe_result": null,
|
||||||
|
"status_code": 0
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in New Issue