blob: 2cc1d512682a9193b5dc36f7c7a1810757a2b9c7 [file]
# Copyright 2015 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.
"""Tests that step_data can accept multiple specs at once."""
from __future__ import annotations
DEPS = [
'raw_io',
'step',
]
def RunSteps(api):
doge = api.step('doge',
['doge'], stdout=api.raw_io.output(), stderr=api.raw_io.output())
assert doge.stdout == b'such stdout'
assert doge.stderr == b'so stderring'
def GenTests(api):
yield (
api.test('basic') +
api.step_data('doge',
api.raw_io.stream_output('such stdout', stream='stdout'),
api.raw_io.stream_output('so stderring', stream='stderr')))