OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright 2014 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 os |
| 7 import subprocess |
| 8 import unittest |
| 9 |
| 10 BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__fil
e__)))) |
| 11 |
| 12 class RunTest(unittest.TestCase): |
| 13 def test_run(self): |
| 14 script_path = os.path.join(BASE_DIR, 'recipes.py') |
| 15 exit_code = subprocess.call([ |
| 16 'python', script_path, |
| 17 '--package', os.path.join(BASE_DIR, 'infra', 'config', 'recipes.cfg'), |
| 18 'run', 'step:example']) |
| 19 self.assertEqual(0, exit_code) |
| 20 |
| 21 if __name__ == '__main__': |
| 22 unittest.TestCase.maxDiff = None |
| 23 unittest.main() |
OLD | NEW |