Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: recipe_engine/unittests/run_test.py

Issue 2973133002: [file] fix glob_paths when NO paths match, add tests. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « README.recipes.md ('k') | recipe_modules/file/examples/glob.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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()
OLDNEW
« no previous file with comments | « README.recipes.md ('k') | recipe_modules/file/examples/glob.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698