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.
5 PYTHON_VERSION_COMPATIBILITY = "PY3"
9 'recipe_engine/context',
15 api.step('1', cmd=['echo', 'hi'])
16 with api.env({'MYVAR': 'myval'}):
17 api.step('2', cmd=['echo', 'hi'])
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'])
27 yield api.test('test')