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

Side by Side Diff: unittests/remote_test.py

Issue 2080343005: Add 'remote' command to replace 'remote_run' (Closed) Base URL: https://github.com/luci/recipes-py.git@master
Patch Set: Created 4 years, 6 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') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2016 The LUCI Authors. All rights reserved. 2 # Copyright 2016 The LUCI Authors. All rights reserved.
3 # Use of this source code is governed under the Apache License, Version 2.0 3 # Use of this source code is governed under the Apache License, Version 2.0
4 # that can be found in the LICENSE file. 4 # that can be found in the LICENSE file.
5 5
6 import subprocess 6 import subprocess
7 import sys 7 import sys
8 import unittest 8 import unittest
9 9
10 import repo_test_util 10 import repo_test_util
11 11
12 12
13 class RemoteRunTest(repo_test_util.RepoTest): 13 class RemoteTest(repo_test_util.RepoTest):
14 def test_basic(self): 14 def test_run(self):
15 repos = self.repo_setup({'a': []}) 15 repos = self.repo_setup({'a': []})
16 self.update_recipe_module(repos['a'], 'mod', {'foo': []}) 16 self.update_recipe_module(repos['a'], 'mod', {'foo': []})
17 self.update_recipe(repos['a'], 'a_recipe', ['mod'], [('mod', 'foo')]) 17 self.update_recipe(repos['a'], 'a_recipe', ['mod'], [('mod', 'foo')])
18 subprocess.check_output([ 18 subprocess.check_output([
19 sys.executable, self._recipe_tool, 19 sys.executable, self._recipe_tool,
20 'remote_run', 20 'remote',
21 '--repository', repos['a']['root'], 21 '--repository', repos['a']['root'],
22 '--', 22 '--',
23 'run',
23 'a_recipe', 24 'a_recipe',
24 ], stderr=subprocess.STDOUT) 25 ], stderr=subprocess.STDOUT)
25 26
26 27
27 if __name__ == '__main__': 28 if __name__ == '__main__':
28 sys.exit(unittest.main()) 29 sys.exit(unittest.main())
OLDNEW
« no previous file with comments | « recipes.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698