blob: 94ee92ad01871cd18a0ef1f98726849d2b3ce90a [file] [log] [blame]
# Copyright 2019 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 = [
from import Build
def RunSteps(api):
api.step('no builds actually triggered', cmd=[])
assert api.cq.triggered_build_ids == []
api.step('triggered some builds', cmd=[])
api.cq.record_triggered_build_ids(1, 2)
api.cq.record_triggered_builds(Build(id=22), Build(id=11))
assert api.cq.triggered_build_ids == [1, 2, 22, 11]
def GenTests(api):
yield api.test('example')