| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The LUCI Authors. All rights reserved. | 2 # Copyright 2014 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 json | 6 import json |
| 7 import os | 7 import os |
| 8 import re | 8 import re |
| 9 import subprocess | 9 import subprocess |
| 10 import unittest | 10 import unittest |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 0, proc.returncode, recipe, stdout)) | 54 0, proc.returncode, recipe, stdout)) |
| 55 | 55 |
| 56 def test_examples(self): | 56 def test_examples(self): |
| 57 tests = [ | 57 tests = [ |
| 58 ['step:examples/full'], | 58 ['step:examples/full'], |
| 59 ['path:examples/full'], | 59 ['path:examples/full'], |
| 60 ['raw_io:examples/full'], | 60 ['raw_io:examples/full'], |
| 61 ['python:examples/full'], | 61 ['python:examples/full'], |
| 62 ['json:examples/full'], | 62 ['json:examples/full'], |
| 63 ['uuid:examples/full'], | 63 ['uuid:examples/full'], |
| 64 ['file:examples/copy'], |
| 65 ['file:examples/copytree'], |
| 64 | 66 |
| 65 ['engine_tests/depend_on/top', {'to_pass': 42}], | 67 ['engine_tests/depend_on/top', {'to_pass': 42}], |
| 66 ['engine_tests/functools_partial'], | 68 ['engine_tests/functools_partial'], |
| 67 ] | 69 ] |
| 68 for test in tests: | 70 for test in tests: |
| 69 self._test_recipe(*test) | 71 self._test_recipe(*test) |
| 70 | 72 |
| 71 def test_bad_subprocess(self): | 73 def test_bad_subprocess(self): |
| 72 now = time.time() | 74 now = time.time() |
| 73 self._test_recipe('engine_tests/bad_subprocess') | 75 self._test_recipe('engine_tests/bad_subprocess') |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 u'foo', | 260 u'foo', |
| 259 u'bar', | 261 u'bar', |
| 260 u'baz', | 262 u'baz', |
| 261 ], | 263 ], |
| 262 }) | 264 }) |
| 263 | 265 |
| 264 | 266 |
| 265 if __name__ == '__main__': | 267 if __name__ == '__main__': |
| 266 unittest.TestCase.maxDiff = None | 268 unittest.TestCase.maxDiff = None |
| 267 unittest.main() | 269 unittest.main() |
| OLD | NEW |