| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 ['context:examples/full'], | 66 ['context:examples/full'], |
| 67 ['context:tests/env'], | 67 ['context:tests/env'], |
| 68 ['step:examples/full'], | 68 ['step:examples/full'], |
| 69 ['path:examples/full'], | 69 ['path:examples/full'], |
| 70 ['raw_io:examples/full'], | 70 ['raw_io:examples/full'], |
| 71 ['python:examples/full'], | 71 ['python:examples/full'], |
| 72 ['json:examples/full'], | 72 ['json:examples/full'], |
| 73 ['uuid:examples/full'], | 73 ['uuid:examples/full'], |
| 74 ['file:examples/copy'], | 74 ['file:examples/copy'], |
| 75 ['file:examples/copytree'], | 75 ['file:examples/copytree'], |
| 76 ['file:examples/glob'], |
| 76 | 77 |
| 77 ['engine_tests/depend_on/top', {'to_pass': 42}], | 78 ['engine_tests/depend_on/top', {'to_pass': 42}], |
| 78 ['engine_tests/functools_partial'], | 79 ['engine_tests/functools_partial'], |
| 79 ] | 80 ] |
| 80 for test in tests: | 81 for test in tests: |
| 81 self._test_recipe(*test, env=env) | 82 self._test_recipe(*test, env=env) |
| 82 | 83 |
| 83 def test_bad_subprocess(self): | 84 def test_bad_subprocess(self): |
| 84 now = time.time() | 85 now = time.time() |
| 85 self._test_recipe('engine_tests/bad_subprocess') | 86 self._test_recipe('engine_tests/bad_subprocess') |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 u'foo', | 271 u'foo', |
| 271 u'bar', | 272 u'bar', |
| 272 u'baz', | 273 u'baz', |
| 273 ], | 274 ], |
| 274 }) | 275 }) |
| 275 | 276 |
| 276 | 277 |
| 277 if __name__ == '__main__': | 278 if __name__ == '__main__': |
| 278 unittest.TestCase.maxDiff = None | 279 unittest.TestCase.maxDiff = None |
| 279 unittest.main() | 280 unittest.main() |
| OLD | NEW |