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

Side by Side Diff: recipes/engine_tests/missing_start_dir.py

Issue 2885293003: [step_runner] do not immediately bail when START_DIR is gone. (Closed)
Patch Set: whitespace Created 3 years, 7 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
OLDNEW
(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')
OLDNEW
« no previous file with comments | « recipe_engine/step_runner.py ('k') | recipes/engine_tests/missing_start_dir.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698