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

Side by Side Diff: recipe_modules/raw_io/example.expected/basic.json

Issue 1906323003: recipe engine: extract infra-specific paths out of the engine (Closed) Base URL: https://github.com/luci/recipes-py.git@master
Patch Set: tmp Created 4 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
« no previous file with comments | « recipe_modules/raw_io/example.py ('k') | recipe_modules/shutil/example.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 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "echo", 4 "echo",
5 "Hello World" 5 "Hello World"
6 ], 6 ],
7 "cwd": "[SLAVE_BUILD]",
8 "name": "echo", 7 "name": "echo",
9 "stderr": "/path/to/tmp/", 8 "stderr": "/path/to/tmp/",
10 "stdout": "/path/to/tmp/" 9 "stdout": "/path/to/tmp/"
11 }, 10 },
12 { 11 {
13 "cmd": [ 12 "cmd": [
14 "cat" 13 "cat"
15 ], 14 ],
16 "cwd": "[SLAVE_BUILD]",
17 "name": "cat", 15 "name": "cat",
18 "stdin": "hello", 16 "stdin": "hello",
19 "stdout": "/path/to/tmp/out" 17 "stdout": "/path/to/tmp/out"
20 }, 18 },
21 { 19 {
22 "cmd": [ 20 "cmd": [
23 "echo", 21 "echo",
24 "huh" 22 "huh"
25 ], 23 ],
26 "cwd": "[SLAVE_BUILD]",
27 "name": "automock", 24 "name": "automock",
28 "stdout": "/path/to/tmp/out" 25 "stdout": "/path/to/tmp/out"
29 }, 26 },
30 { 27 {
31 "cmd": [ 28 "cmd": [
32 "bash", 29 "bash",
33 "-c", 30 "-c",
34 "echo blah && echo fail 1>&2" 31 "echo blah && echo fail 1>&2"
35 ], 32 ],
36 "cwd": "[SLAVE_BUILD]",
37 "name": "automock (fail)", 33 "name": "automock (fail)",
38 "stderr": "/path/to/tmp/err", 34 "stderr": "/path/to/tmp/err",
39 "stdout": "/path/to/tmp/out" 35 "stdout": "/path/to/tmp/out"
40 }, 36 },
41 { 37 {
42 "cmd": [ 38 "cmd": [
43 "echo", 39 "echo",
44 "leaking" 40 "leaking"
45 ], 41 ],
46 "cwd": "[SLAVE_BUILD]",
47 "name": "leak stdout", 42 "name": "leak stdout",
48 "stdout": "[SLAVE_BUILD]/out.txt" 43 "stdout": "[TMP]/out.txt"
49 }, 44 },
50 { 45 {
51 "cmd": [ 46 "cmd": [
52 "ls", 47 "ls",
53 "/path/to/tmp/" 48 "/path/to/tmp/"
54 ], 49 ],
55 "cwd": "[SLAVE_BUILD]",
56 "name": "list temp dir" 50 "name": "list temp dir"
57 }, 51 },
58 { 52 {
59 "cmd": [ 53 "cmd": [
60 "ls", 54 "ls",
61 "[SLAVE_BUILD]/out" 55 "[TMP]/out"
62 ], 56 ],
63 "cwd": "[SLAVE_BUILD]",
64 "name": "leak dir" 57 "name": "leak dir"
65 }, 58 },
66 { 59 {
67 "cmd": [ 60 "cmd": [
68 "python", 61 "python",
69 "-u", 62 "-u",
70 "\nimport sys\nwith open(sys.argv[1], 'w') as f:\n f.write('bad_value')\n ", 63 "\nimport sys\nwith open(sys.argv[1], 'w') as f:\n f.write('bad_value')\n ",
71 "/path/to/tmp/" 64 "/path/to/tmp/"
72 ], 65 ],
73 "cwd": "[SLAVE_BUILD]",
74 "name": "override_default_mock", 66 "name": "override_default_mock",
75 "~followup_annotations": [ 67 "~followup_annotations": [
76 "@@@STEP_LOG_LINE@python.inline@@@@", 68 "@@@STEP_LOG_LINE@python.inline@@@@",
77 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 69 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
78 "@@@STEP_LOG_LINE@python.inline@with open(sys.argv[1], 'w') as f:@@@", 70 "@@@STEP_LOG_LINE@python.inline@with open(sys.argv[1], 'w') as f:@@@",
79 "@@@STEP_LOG_LINE@python.inline@ f.write('bad_value')@@@", 71 "@@@STEP_LOG_LINE@python.inline@ f.write('bad_value')@@@",
80 "@@@STEP_LOG_END@python.inline@@@" 72 "@@@STEP_LOG_END@python.inline@@@"
81 ] 73 ]
82 }, 74 },
83 { 75 {
84 "name": "$result", 76 "name": "$result",
85 "recipe_result": null, 77 "recipe_result": null,
86 "status_code": 0 78 "status_code": 0
87 } 79 }
88 ] 80 ]
OLDNEW
« no previous file with comments | « recipe_modules/raw_io/example.py ('k') | recipe_modules/shutil/example.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698