blob: e348fbd6e53924396ab1df276f57379b6e6c9da7 [file] [log] [blame]
# 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.
from recipe_engine.recipe_api import Property, RequireClient
from recipe_engine import config
DEPS = [
'properties',
]
PROPERTIES = {
'to_pass': Property(),
}
RETURN_SCHEMA = config.ReturnSchema(
result=config.Single(int),
)
dependency_manager = RequireClient('dependency_manager')
def RunSteps(api, to_pass):
res = dependency_manager.depend_on(
'engine_tests/depend_on/bottom', {'number': to_pass})
return RETURN_SCHEMA(result=res['number_times_two'])
def GenTests(api):
yield (
api.test('basic') +
api.properties(to_pass=3) +
api.depend_on('engine_tests/depend_on/bottom',
{'number': 3}, {'number_times_two': 6})
)