OLD | NEW |
(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()) |
OLD | NEW |