blob: 0ed6974c01348f0f13d67f471611d72b2c70df82 [file] [log] [blame]
# Copyright 2019 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.
DEPS = [
'futures',
'step',
]
def Level2(api, i):
with api.step.nest('Level2 [%d]' % i):
api.futures.spawn(api.step, 'cool step', cmd=None)
def Level1(api, i):
with api.step.nest('Level1 [%d]' % i):
for j in xrange(4):
api.futures.spawn(Level2, api, j)
def RunSteps(api):
for i in xrange(4):
api.futures.spawn(Level1, api, i)
def GenTests(api):
yield api.test('basic')