| OLD | NEW |
| 1 # Copyright 2015 The LUCI Authors. All rights reserved. | 1 # Copyright 2015 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed under the Apache License, Version 2.0 | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # that can be found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Launches the repo bundler.""" | 5 """Launches the repo bundler.""" |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'python', | 8 'python', |
| 9 'raw_io', | 9 'raw_io', |
| 10 'step', | 10 'step', |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 api.python.failing_step("failure", "This step is a failure :(") | 21 api.python.failing_step("failure", "This step is a failure :(") |
| 22 except api.step.StepFailure: | 22 except api.step.StepFailure: |
| 23 was_failure = True | 23 was_failure = True |
| 24 assert was_failure | 24 assert was_failure |
| 25 | 25 |
| 26 # Test that unbufferred actually removes PYTHONUNBUFFERED envvar. | 26 # Test that unbufferred actually removes PYTHONUNBUFFERED envvar. |
| 27 api.python('run json.tool', '-m', [ | 27 api.python('run json.tool', '-m', [ |
| 28 'json.tool', api.raw_io.input('{"something":[true,true]}'), | 28 'json.tool', api.raw_io.input('{"something":[true,true]}'), |
| 29 ], unbuffered=False) | 29 ], unbuffered=False) |
| 30 | 30 |
| 31 api.python.inline('inline', 'print "Hello World!"') |
| 32 |
| 31 | 33 |
| 32 def GenTests(api): | 34 def GenTests(api): |
| 33 yield api.test('basic') | 35 yield api.test('basic') |
| OLD | NEW |