OLD | NEW |
(Empty) | |
| 1 # Copyright 2017 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # that can be found in the LICENSE file. |
| 4 |
| 5 """Tests that deleting the current working directory doesn't immediately fail.""
" |
| 6 |
| 7 DEPS = [ |
| 8 'step', |
| 9 'path', |
| 10 ] |
| 11 |
| 12 |
| 13 def RunSteps(api): |
| 14 api.step('innocent step', ['bash', '-c', "echo some step"]) |
| 15 api.step('nuke it', ['rm', '-rf', api.path['start_dir']]) |
| 16 |
| 17 try: |
| 18 api.step('bash needs cwd', ['bash', '-c', "echo fail"]) |
| 19 assert True |
| 20 except api.step.StepFailure: # pragma: no cover |
| 21 assert False |
| 22 |
| 23 api.step('python does not', ['python', '-c', 'print "hi"']) |
| 24 |
| 25 |
| 26 def GenTests(api): |
| 27 yield api.test('basic') |
OLD | NEW |