blob: 98347e60e3e416a6cad86709f0f1e23b8e603ccc [file] [log] [blame]
# Copyright 2020 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
from recipe_engine.post_process import (DropExpectation, StepSuccess)
from PB.go.chromium.org.luci.buildbucket.proto import build as build_pb2
from PB.go.chromium.org.luci.resultdb.proto.rpc.v1 import test_result as test_result_pb2
DEPS = [
'buildbucket',
'json',
'resultdb',
'step',
]
test_exonerations = [
test_result_pb2.TestExoneration(
test_id='ninja://chromium/tests:browser_tests/t1',
variant={'def': {
'key1': 'value1'
}},
explanation_html='Failed in without patch step',
),
test_result_pb2.TestExoneration(
test_id='ninja://chromium/tests:browser_tests/t2',
variant={'def': {
'key2': 'value2'
}},
explanation_html='Failed in without patch step',
)
]
def RunSteps(api):
api.resultdb.exonerate(
test_exonerations=test_exonerations,
step_name='exonerate without patch failures',
)
def GenTests(api):
yield api.test(
'exonerate',
api.buildbucket.ci_build(),
api.post_process(StepSuccess, 'exonerate without patch failures'),
api.post_process(DropExpectation))