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

Unified Diff: infra/recipe_modules/hacky_tryserver_detection/example.py

Issue 1641363002: Adds bot_update to depot_tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Don't delete the old files in this CL. Created 4 years, 11 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
Index: infra/recipe_modules/hacky_tryserver_detection/example.py
diff --git a/infra/recipe_modules/hacky_tryserver_detection/example.py b/infra/recipe_modules/hacky_tryserver_detection/example.py
new file mode 100644
index 0000000000000000000000000000000000000000..2187add0b08fba47f3c803b7d0070d2cc2fc464e
--- /dev/null
+++ b/infra/recipe_modules/hacky_tryserver_detection/example.py
@@ -0,0 +1,17 @@
+# 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 = [
+ 'recipe_engine/step',
+ 'hacky_tryserver_detection',
+]
+
+
+def RunSteps(api):
+ api.step(
+ "am i a tryserver?", ['echo', api.hacky_tryserver_detection.is_tryserver])
+
+
+def GenTests(api):
+ yield api.test('basic')

Powered by Google App Engine
This is Rietveld 408576698