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

Unified Diff: scripts/slave/recipe_modules/python/example.py

Issue 1347263002: Revert of Cross-repo recipe package system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 3 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: scripts/slave/recipe_modules/python/example.py
diff --git a/scripts/slave/recipe_modules/python/example.py b/scripts/slave/recipe_modules/python/example.py
new file mode 100644
index 0000000000000000000000000000000000000000..ec3b1ba4048f4a39a5ad88044585164e9dd878bc
--- /dev/null
+++ b/scripts/slave/recipe_modules/python/example.py
@@ -0,0 +1,27 @@
+# Copyright 2015 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.
+
+"""Launches the repo bundler."""
+
+DEPS = [
+ 'python',
+ 'step',
+]
+
+
+def RunSteps(api):
+ api.python.succeeding_step("success", ["This step is a success"],
+ as_log='success')
+
+ # Test that a failing step raises StepFailure.
+ was_failure = False
+ try:
+ api.python.failing_step("failure", "This step is a failure :(")
+ except api.step.StepFailure:
+ was_failure = True
+ assert was_failure
+
+
+def GenTests(api):
+ yield api.test('basic')
« no previous file with comments | « scripts/slave/recipe_modules/python/api.py ('k') | scripts/slave/recipe_modules/python/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698