1# Copyright 2017 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5PYTHON_VERSION_COMPATIBILITY = "PY3" 6 7DEPS = [ 8 'env', 9 'recipe_engine/context', 10 'recipe_engine/step', 11] 12 13 14def RunSteps(api): 15 api.step('1', cmd=['echo', 'hi']) 16 with api.env({'MYVAR': 'myval'}): 17 api.step('2', cmd=['echo', 'hi']) 18 19 path = 'mypath:%(PATH)s' 20 with api.context(env={'PATH': path}): 21 api.step('3', cmd=['echo', 'hi']) 22 with api.env({'PATH': '%(PATH)s:otherpath'}): 23 api.step('4', cmd=['echo', 'hi']) 24 25 26def GenTests(api): 27 yield api.test('test') 28