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

Unified Diff: unittests/remote_run_test.py

Issue 1997023002: recipe engine: add remote_run command (Closed) Base URL: https://github.com/luci/recipes-py.git@master
Patch Set: trybots Created 4 years, 7 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 | « recipes.py ('k') | unittests/repo_test_util.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unittests/remote_run_test.py
diff --git a/unittests/remote_run_test.py b/unittests/remote_run_test.py
new file mode 100755
index 0000000000000000000000000000000000000000..c230c0851ffab0b38b8eba0de55afd8d24c41332
--- /dev/null
+++ b/unittests/remote_run_test.py
@@ -0,0 +1,28 @@
+#!/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 subprocess
+import sys
+import unittest
+
+import repo_test_util
+
+
+class RemoteRunTest(repo_test_util.RepoTest):
+ def test_basic(self):
+ repos = self.repo_setup({'a': []})
+ self.update_recipe_module(repos['a'], 'mod', {'foo': []})
+ self.update_recipe(repos['a'], 'a_recipe', ['mod'], [('mod', 'foo')])
+ subprocess.check_output([
+ sys.executable, self._recipe_tool,
+ 'remote_run',
+ '--repository', repos['a']['root'],
+ '--',
+ 'a_recipe',
+ ], stderr=subprocess.STDOUT)
+
+
+if __name__ == '__main__':
+ sys.exit(unittest.main())
« no previous file with comments | « recipes.py ('k') | unittests/repo_test_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698