blob: e2c07b765c4c8fcd86a25642275fff3ca5bc1399 [file] [log] [blame]
# Copyright 2014 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.
PYTHON_VERSION_COMPATIBILITY = 'PY2+3'
DEPS = [
'step',
]
def RunSteps(api):
ran_both = False
try:
with api.step.defer_results():
api.step("testa", ["echo", "testa"])
api.step("testb", ["echo", "testb"])
ran_both = True
finally:
assert ran_both
def GenTests(api):
yield api.test('basic')
yield (
api.test('one_fail') +
api.step_data('testa', retcode=1)
)