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

Unified Diff: recipe_modules/presubmit/example.py

Issue 1668803002: depot_tools: add presubmit recipe module (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 10 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/presubmit/api.py ('k') | recipe_modules/presubmit/example.expected/basic.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/presubmit/example.py
diff --git a/git-hyper-blame b/recipe_modules/presubmit/example.py
old mode 100755
new mode 100644
similarity index 59%
copy from git-hyper-blame
copy to recipe_modules/presubmit/example.py
index 4abb969a88c3addb8a050e7c6442c5842c2c3150..1253519a38a666d9b9aac2d82b6a352651ea5835
--- a/git-hyper-blame
+++ b/recipe_modules/presubmit/example.py
@@ -1,6 +1,15 @@
-#!/usr/bin/env bash
# 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.
-. $(type -P python_runner.sh)
+DEPS = [
+ 'presubmit',
+]
+
+
+def RunSteps(api):
+ api.presubmit()
+
+
+def GenTests(api):
+ yield api.test('basic')
« no previous file with comments | « recipe_modules/presubmit/api.py ('k') | recipe_modules/presubmit/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698