skia2/infra/bots/recipe_modules/env/examples/full.py
Robert Iannucci dec4c0b298 Rename example.py -> examples/full.py for all modules
`example.py` is going away; examples folder can now hold multiple
example recipes.

R=borenet@google.com

Bug: skia:
Change-Id: Ib28910987342217bc52040d4d966444174ce27a3
Reviewed-on: https://skia-review.googlesource.com/18432
Commit-Queue: Eric Boren <borenet@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
2017-06-02 11:40:36 +00:00

27 lines
608 B
Python

# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DEPS = [
'env',
'recipe_engine/context',
'recipe_engine/step',
]
def RunSteps(api):
api.step('1', cmd=['echo', 'hi'])
with api.env({'MYVAR': 'myval'}):
api.step('2', cmd=['echo', 'hi'])
path = 'mypath:%(PATH)s'
with api.context(env={'PATH': path}):
api.step('3', cmd=['echo', 'hi'])
with api.env({'PATH': '%(PATH)s:otherpath'}):
api.step('4', cmd=['echo', 'hi'])
def GenTests(api):
yield api.test('test')