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

Unified Diff: infra/unittests/recipes_test.py

Issue 2275263002: infra: add presubmit check for recipes (Closed)
Patch Set: bootstrap Created 4 years, 4 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 | « infra/PRESUBMIT.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/unittests/recipes_test.py
diff --git a/infra/unittests/recipes_test.py b/infra/unittests/recipes_test.py
new file mode 100755
index 0000000000000000000000000000000000000000..7713425b92697bbdd31f64cf992a181583b80b16
--- /dev/null
+++ b/infra/unittests/recipes_test.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+# 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.
+
+import os
+import subprocess
+
+
+THIS_DIR = os.path.abspath(os.path.dirname(__file__))
+INFRA_DIR = os.path.dirname(THIS_DIR)
+
+
+def recipes_py(*args):
+ subprocess.check_call(
+ [os.path.join(INFRA_DIR, 'recipes.py'), '--use-bootstrap'] + list(args))
+
+
+recipes_py('simulation_test')
+recipes_py('lint')
« no previous file with comments | « infra/PRESUBMIT.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698