| Index: scripts/slave/recipe_modules/time/example.py
|
| diff --git a/scripts/slave/recipe_modules/time/example.py b/scripts/slave/recipe_modules/time/example.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7832d1978790fce5730bdf9d565547eaedceae76
|
| --- /dev/null
|
| +++ b/scripts/slave/recipe_modules/time/example.py
|
| @@ -0,0 +1,18 @@
|
| +# Copyright 2014 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 = [
|
| + 'step',
|
| + 'time',
|
| +]
|
| +
|
| +
|
| +def RunSteps(api):
|
| + now = api.time.time()
|
| + api.step('echo', ['echo', str(now)])
|
| +
|
| +
|
| +def GenTests(api):
|
| + yield api.test('defaults')
|
| + yield api.test('seed_and_step') + api.time.seed(123) + api.time.step(2)
|
|
|