OLD | NEW |
| (Empty) |
1 #!/usr/bin/env python | |
2 | |
3 # Copyright 2015 The Chromium Authors. All rights reserved. | |
4 # Use of this source code is governed by a BSD-style license that can be | |
5 # found in the LICENSE file. | |
6 | |
7 """Tests that the tools/build annotated_run wrapper actually runs.""" | |
8 | |
9 import os | |
10 import subprocess | |
11 import unittest | |
12 | |
13 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
14 | |
15 class AnnotatedRunTest(unittest.TestCase): | |
16 def test_example(self): | |
17 script_path = os.path.join(BASE_DIR, 'annotated_run.py') | |
18 exit_code = subprocess.call([ | |
19 'python', script_path, | |
20 '--factory-properties={"recipe":"step:example"}']) | |
21 self.assertEqual(exit_code, 0) | |
22 | |
23 if __name__ == '__main__': | |
24 unittest.main() | |
OLD | NEW |