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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « recipes.py ('k') | unittests/repo_test_util.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import subprocess
7 import sys
8 import unittest
9
10 import repo_test_util
11
12
13 class RemoteRunTest(repo_test_util.RepoTest):
14 def test_basic(self):
15 repos = self.repo_setup({'a': []})
16 self.update_recipe_module(repos['a'], 'mod', {'foo': []})
17 self.update_recipe(repos['a'], 'a_recipe', ['mod'], [('mod', 'foo')])
18 subprocess.check_output([
19 sys.executable, self._recipe_tool,
20 'remote_run',
21 '--repository', repos['a']['root'],
22 '--',
23 'a_recipe',
24 ], stderr=subprocess.STDOUT)
25
26
27 if __name__ == '__main__':
28 sys.exit(unittest.main())
OLDNEW
« 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