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

Unified Diff: recipe_engine/unittests/run_test.py

Issue 1344583003: Recipe package system. (Closed) Base URL: git@github.com:luci/recipes-py.git@master
Patch Set: Recompiled proto 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
« no previous file with comments | « recipe_engine/unittests/package_test.py ('k') | recipe_modules/example/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_engine/unittests/run_test.py
diff --git a/recipe_engine/unittests/run_test.py b/recipe_engine/unittests/run_test.py
new file mode 100755
index 0000000000000000000000000000000000000000..850f1d3fdf9a4305422bc6ace3eb0604e5d77b03
--- /dev/null
+++ b/recipe_engine/unittests/run_test.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+# 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.
+
+import os
+import subprocess
+import unittest
+
+BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+
+class RunTest(unittest.TestCase):
+ def test_run(self):
+ script_path = os.path.join(BASE_DIR, 'recipes.py')
+ exit_code = subprocess.call([
+ 'python', script_path,
+ '--package', os.path.join(BASE_DIR, 'infra', 'config', 'recipes.cfg'),
+ 'run', 'step:example'])
+ self.assertEqual(0, exit_code)
+
+if __name__ == '__main__':
+ unittest.TestCase.maxDiff = None
+ unittest.main()
« no previous file with comments | « recipe_engine/unittests/package_test.py ('k') | recipe_modules/example/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698