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