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

Unified Diff: scripts/slave/recipes/example/subannotations.py

Issue 1071733003: Revert of Make allow_subannotations more robust. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 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
Index: scripts/slave/recipes/example/subannotations.py
diff --git a/scripts/slave/recipes/example/subannotations.py b/scripts/slave/recipes/example/subannotations.py
deleted file mode 100644
index ea1defe4deefbc0a8081dd183c044861dc79a024..0000000000000000000000000000000000000000
--- a/scripts/slave/recipes/example/subannotations.py
+++ /dev/null
@@ -1,48 +0,0 @@
-# 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 = [
- 'python',
- 'step',
-]
-
-def GenSteps(api):
- result = api.python.inline('subannotator',
- """
- import sys
- print 'Some output...'
- print '@@@BUILD_STEP a build step@@@'
- print 'Some output inside a build step'
- print '@@@STEP_TEXT@this is step text@@@'
- print '@@@BUILD_STEP another build step@@@'
- """,
- allow_subannotations=True)
- result.presentation.step_text = 'Wooot!'
-
- api.python.inline('disallowed subannotator',
- """
- import sys
- print 'Some output...'
- print '@@@BUILD_STEP a unique build step@@@'
- print 'Some output inside a build step'
- print '@@@STEP_TEXT@this is step text@@@'
- print '@@@BUILD_STEP another build step@@@'
- """)
-
- api.python.inline('subannotator',
- """
- import sys
- print 'Some output...'
- print '@@@BUILD_STEP a unique build step@@@'
- print 'Some output inside a build step'
- print '@@@STEP_TEXT@this is step text@@@'
- print '@@@BUILD_STEP another build step@@@'
- sys.exit(1)
- """,
- allow_subannotations=True)
-
- api.step('post run', ['echo', 'post_run'])
-
-def GenTests(api):
- yield api.test('basic')
« no previous file with comments | « scripts/slave/recipe_modules/step/api.py ('k') | scripts/slave/recipes/example/subannotations.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698