Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(961)

Unified Diff: recipe_modules/infra_paths/example.py

Issue 1926033002: depot_tools: add infra_paths recipe module for infra-specific paths (attempt #2) (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: fixes Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_modules/infra_paths/api.py ('k') | recipe_modules/infra_paths/example.expected/basic.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/infra_paths/example.py
diff --git a/recipe_modules/infra_paths/example.py b/recipe_modules/infra_paths/example.py
new file mode 100644
index 0000000000000000000000000000000000000000..0efa21ef05e9b31f4f256d6d699633f9a4359bd9
--- /dev/null
+++ b/recipe_modules/infra_paths/example.py
@@ -0,0 +1,28 @@
+# Copyright 2016 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 = [
+ 'infra_paths',
+ 'recipe_engine/path',
+ 'recipe_engine/platform',
+ 'recipe_engine/properties',
+ 'recipe_engine/step',
+]
+
+
+def RunSteps(api):
+ api.step('show cache path', [])
+ api.step.active_result.presentation.step_text = str(api.path['cache'])
+
+
+def GenTests(api):
+ yield api.test('basic')
+
+ for platform in ('linux', 'mac', 'win'):
+ for path_config in ('buildbot', 'kitchen'):
+ yield (
+ api.test('paths_%s_%s' % (path_config, platform)) +
+ api.platform.name(platform) +
+ api.properties(path_config=path_config)
+ )
« no previous file with comments | « recipe_modules/infra_paths/api.py ('k') | recipe_modules/infra_paths/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698