dec4c0b298
`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>
27 lines
608 B
Python
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')
|