Add CL description getter
For context crrev.com/c/4450427. R=gbeaty@google.com Change-Id: Ic0a7847009be274010daeaf3181242ae34477a39 Bug: b/214597409 Recipe-Nontrivial-Roll: build Recipe-Nontrivial-Roll: build_limited Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4451469 Commit-Queue: Ariel Zhang <arielzhang@google.com> Reviewed-by: Garrett Beaty <gbeaty@google.com> Reviewed-by: Gavin Mak <gavinmak@google.com>changes/69/4451469/6
parent
6b62f42578
commit
2d1c655c2c
@ -0,0 +1,30 @@
|
||||
# Copyright 2023 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.post_process import (DropExpectation, StatusSuccess, MustRun,
|
||||
DoesNotRun)
|
||||
|
||||
PYTHON_VERSION_COMPATIBILITY = 'PY2+3'
|
||||
|
||||
DEPS = [
|
||||
'tryserver',
|
||||
'recipe_engine/buildbucket',
|
||||
'recipe_engine/step',
|
||||
]
|
||||
|
||||
|
||||
def RunSteps(api):
|
||||
api.tryserver.get_change_description()
|
||||
api.tryserver.get_change_description()
|
||||
|
||||
|
||||
def GenTests(api):
|
||||
yield api.test(
|
||||
'basic',
|
||||
api.buildbucket.try_build(),
|
||||
api.post_process(MustRun, 'gerrit changes'),
|
||||
api.post_process(DoesNotRun, 'gerrit changes (2)'),
|
||||
api.post_process(StatusSuccess),
|
||||
api.post_process(DropExpectation),
|
||||
)
|
||||
Loading…
Reference in New Issue