OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "cmd": [ | 3 "cmd": [ |
4 "touch", | 4 "touch", |
5 "[TMP_BASE]\\zip-example_tmp_1\\a" | 5 "[TMP]\\zip-example_tmp_1\\a" |
6 ], | 6 ], |
7 "cwd": "[SLAVE_BUILD]", | |
8 "name": "touch a" | 7 "name": "touch a" |
9 }, | 8 }, |
10 { | 9 { |
11 "cmd": [ | 10 "cmd": [ |
12 "touch", | 11 "touch", |
13 "[TMP_BASE]\\zip-example_tmp_1\\b" | 12 "[TMP]\\zip-example_tmp_1\\b" |
14 ], | 13 ], |
15 "cwd": "[SLAVE_BUILD]", | |
16 "name": "touch b" | 14 "name": "touch b" |
17 }, | 15 }, |
18 { | 16 { |
19 "cmd": [ | 17 "cmd": [ |
20 "python", | 18 "python", |
21 "-u", | 19 "-u", |
22 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.
path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not
a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", | 20 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.
path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not
a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", |
23 "[TMP_BASE]\\zip-example_tmp_1\\sub\\dir", | 21 "[TMP]\\zip-example_tmp_1\\sub\\dir", |
24 "511" | 22 "511" |
25 ], | 23 ], |
26 "cwd": "[SLAVE_BUILD]", | |
27 "name": "makedirs mkdirs", | 24 "name": "makedirs mkdirs", |
28 "~followup_annotations": [ | 25 "~followup_annotations": [ |
29 "@@@STEP_LOG_LINE@python.inline@@@@", | 26 "@@@STEP_LOG_LINE@python.inline@@@@", |
30 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", | 27 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
31 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", | 28 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
32 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", | 29 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
33 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", | 30 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
34 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", | 31 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
35 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", | 32 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", |
36 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", | 33 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
37 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", | 34 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
38 "@@@STEP_LOG_END@python.inline@@@" | 35 "@@@STEP_LOG_END@python.inline@@@" |
39 ] | 36 ] |
40 }, | 37 }, |
41 { | 38 { |
42 "cmd": [ | 39 "cmd": [ |
43 "touch", | 40 "touch", |
44 "[TMP_BASE]\\zip-example_tmp_1\\sub\\dir\\c" | 41 "[TMP]\\zip-example_tmp_1\\sub\\dir\\c" |
45 ], | 42 ], |
46 "cwd": "[SLAVE_BUILD]", | |
47 "name": "touch c" | 43 "name": "touch c" |
48 }, | 44 }, |
49 { | 45 { |
50 "cmd": [ | 46 "cmd": [ |
51 "python", | 47 "python", |
52 "-u", | 48 "-u", |
53 "RECIPE_MODULE[build::zip]\\resources\\zip.py" | 49 "RECIPE_MODULE[build::zip]\\resources\\zip.py" |
54 ], | 50 ], |
55 "cwd": "[SLAVE_BUILD]", | |
56 "name": "zipping", | 51 "name": "zipping", |
57 "stdin": "{\"entries\": [{\"path\": \"[TMP_BASE]\\\\zip-example_tmp_1\", \"t
ype\": \"dir\"}], \"output\": \"[TMP_BASE]\\\\zip-example_tmp_1\\\\output.zip\",
\"root\": \"[TMP_BASE]\\\\zip-example_tmp_1\"}" | 52 "stdin": "{\"entries\": [{\"path\": \"[TMP]\\\\zip-example_tmp_1\", \"type\"
: \"dir\"}], \"output\": \"[TMP]\\\\zip-example_tmp_1\\\\output.zip\", \"root\":
\"[TMP]\\\\zip-example_tmp_1\"}" |
58 }, | 53 }, |
59 { | 54 { |
60 "cmd": [ | 55 "cmd": [ |
61 "python", | 56 "python", |
62 "-u", | 57 "-u", |
63 "RECIPE_MODULE[build::zip]\\resources\\zip.py" | 58 "RECIPE_MODULE[build::zip]\\resources\\zip.py" |
64 ], | 59 ], |
65 "cwd": "[SLAVE_BUILD]", | |
66 "name": "zipping more", | 60 "name": "zipping more", |
67 "stdin": "{\"entries\": [{\"archive_name\": null, \"path\": \"[TMP_BASE]\\\\
zip-example_tmp_1\\\\a\", \"type\": \"file\"}, {\"archive_name\": null, \"path\"
: \"[TMP_BASE]\\\\zip-example_tmp_1\\\\b\", \"type\": \"file\"}, {\"path\": \"[T
MP_BASE]\\\\zip-example_tmp_1\\\\sub\", \"type\": \"dir\"}], \"output\": \"[TMP_
BASE]\\\\zip-example_tmp_1\\\\more.zip\", \"root\": \"[TMP_BASE]\\\\zip-example_
tmp_1\"}" | 61 "stdin": "{\"entries\": [{\"archive_name\": null, \"path\": \"[TMP]\\\\zip-e
xample_tmp_1\\\\a\", \"type\": \"file\"}, {\"archive_name\": null, \"path\": \"[
TMP]\\\\zip-example_tmp_1\\\\b\", \"type\": \"file\"}, {\"path\": \"[TMP]\\\\zip
-example_tmp_1\\\\sub\", \"type\": \"dir\"}], \"output\": \"[TMP]\\\\zip-example
_tmp_1\\\\more.zip\", \"root\": \"[TMP]\\\\zip-example_tmp_1\"}" |
68 }, | 62 }, |
69 { | 63 { |
70 "cmd": [ | 64 "cmd": [ |
71 "echo", | 65 "echo", |
72 "[TMP_BASE]\\zip-example_tmp_1\\more.zip" | 66 "[TMP]\\zip-example_tmp_1\\more.zip" |
73 ], | 67 ], |
74 "cwd": "[SLAVE_BUILD]", | |
75 "name": "report" | 68 "name": "report" |
76 }, | 69 }, |
77 { | 70 { |
78 "cmd": [ | 71 "cmd": [ |
79 "python", | 72 "python", |
80 "-u", | 73 "-u", |
81 "RECIPE_MODULE[build::zip]\\resources\\unzip.py" | 74 "RECIPE_MODULE[build::zip]\\resources\\unzip.py" |
82 ], | 75 ], |
83 "cwd": "[SLAVE_BUILD]", | |
84 "name": "unzipping", | 76 "name": "unzipping", |
85 "stdin": "{\"output\": \"[TMP_BASE]\\\\zip-example_tmp_1\\\\output\", \"zip_
file\": \"[TMP_BASE]\\\\zip-example_tmp_1\\\\output.zip\"}" | 77 "stdin": "{\"output\": \"[TMP]\\\\zip-example_tmp_1\\\\output\", \"zip_file\
": \"[TMP]\\\\zip-example_tmp_1\\\\output.zip\"}" |
86 }, | 78 }, |
87 { | 79 { |
88 "cmd": [ | 80 "cmd": [ |
89 "find" | 81 "find" |
90 ], | 82 ], |
91 "cwd": "[TMP_BASE]\\zip-example_tmp_1\\output", | 83 "cwd": "[TMP]\\zip-example_tmp_1\\output", |
92 "name": "listing" | 84 "name": "listing" |
93 }, | 85 }, |
94 { | 86 { |
95 "cmd": [ | 87 "cmd": [ |
96 "python", | 88 "python", |
97 "-u", | 89 "-u", |
98 "\nimport os, sys\nfrom common import chromium_utils # Error? See https://
crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD
irectory(sys.argv[1])\n", | 90 "\nimport os, sys\nfrom common import chromium_utils # Error? See https://
crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD
irectory(sys.argv[1])\n", |
99 "[TMP_BASE]\\zip-example_tmp_1" | 91 "[TMP]\\zip-example_tmp_1" |
100 ], | 92 ], |
101 "cwd": "[SLAVE_BUILD]", | |
102 "name": "rmtree cleanup", | 93 "name": "rmtree cleanup", |
103 "~followup_annotations": [ | 94 "~followup_annotations": [ |
104 "@@@STEP_LOG_LINE@python.inline@@@@", | 95 "@@@STEP_LOG_LINE@python.inline@@@@", |
105 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", | 96 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", |
106 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error?
See https://crbug.com/584783.@@@", | 97 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error?
See https://crbug.com/584783.@@@", |
107 "@@@STEP_LOG_LINE@python.inline@@@@", | 98 "@@@STEP_LOG_LINE@python.inline@@@@", |
108 "@@@STEP_LOG_LINE@python.inline@@@@", | 99 "@@@STEP_LOG_LINE@python.inline@@@@", |
109 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", | 100 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", |
110 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[
1])@@@", | 101 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[
1])@@@", |
111 "@@@STEP_LOG_END@python.inline@@@" | 102 "@@@STEP_LOG_END@python.inline@@@" |
112 ] | 103 ] |
113 }, | 104 }, |
114 { | 105 { |
115 "name": "$result", | 106 "name": "$result", |
116 "recipe_result": null, | 107 "recipe_result": null, |
117 "status_code": 0 | 108 "status_code": 0 |
118 } | 109 } |
119 ] | 110 ] |
OLD | NEW |