OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "cmd": [ | 3 "cmd": [ |
4 "touch", | 4 "touch", |
5 "[TMP_BASE]/zip-example_tmp_1/a" | 5 "[TMP_BASE]/zip-example_tmp_1/a" |
6 ], | 6 ], |
| 7 "cwd": "[SLAVE_BUILD]", |
7 "name": "touch a" | 8 "name": "touch a" |
8 }, | 9 }, |
9 { | 10 { |
10 "cmd": [ | 11 "cmd": [ |
11 "touch", | 12 "touch", |
12 "[TMP_BASE]/zip-example_tmp_1/b" | 13 "[TMP_BASE]/zip-example_tmp_1/b" |
13 ], | 14 ], |
| 15 "cwd": "[SLAVE_BUILD]", |
14 "name": "touch b" | 16 "name": "touch b" |
15 }, | 17 }, |
16 { | 18 { |
17 "cmd": [ | 19 "cmd": [ |
18 "python", | 20 "python", |
19 "-u", | 21 "-u", |
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", | 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", |
21 "[TMP_BASE]/zip-example_tmp_1/sub/dir", | 23 "[TMP_BASE]/zip-example_tmp_1/sub/dir", |
22 "511" | 24 "511" |
23 ], | 25 ], |
| 26 "cwd": "[SLAVE_BUILD]", |
24 "name": "makedirs mkdirs", | 27 "name": "makedirs mkdirs", |
25 "~followup_annotations": [ | 28 "~followup_annotations": [ |
26 "@@@STEP_LOG_LINE@python.inline@@@@", | 29 "@@@STEP_LOG_LINE@python.inline@@@@", |
27 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", | 30 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
28 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", | 31 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
29 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", | 32 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
30 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", | 33 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
31 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", | 34 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
32 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", | 35 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", |
33 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", | 36 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
34 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", | 37 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
35 "@@@STEP_LOG_END@python.inline@@@" | 38 "@@@STEP_LOG_END@python.inline@@@" |
36 ] | 39 ] |
37 }, | 40 }, |
38 { | 41 { |
39 "cmd": [ | 42 "cmd": [ |
40 "touch", | 43 "touch", |
41 "[TMP_BASE]/zip-example_tmp_1/sub/dir/c" | 44 "[TMP_BASE]/zip-example_tmp_1/sub/dir/c" |
42 ], | 45 ], |
| 46 "cwd": "[SLAVE_BUILD]", |
43 "name": "touch c" | 47 "name": "touch c" |
44 }, | 48 }, |
45 { | 49 { |
46 "cmd": [ | 50 "cmd": [ |
47 "python", | 51 "python", |
48 "-u", | 52 "-u", |
49 "RECIPE_MODULE[zip]/resources/zip.py" | 53 "RECIPE_MODULE[zip]/resources/zip.py" |
50 ], | 54 ], |
| 55 "cwd": "[SLAVE_BUILD]", |
51 "name": "zipping", | 56 "name": "zipping", |
52 "stdin": "{\"entries\": [{\"path\": \"[TMP_BASE]/zip-example_tmp_1\", \"type
\": \"dir\"}], \"output\": \"[TMP_BASE]/zip-example_tmp_1/output.zip\", \"root\"
: \"[TMP_BASE]/zip-example_tmp_1\", \"use_python_zip\": false}" | 57 "stdin": "{\"entries\": [{\"path\": \"[TMP_BASE]/zip-example_tmp_1\", \"type
\": \"dir\"}], \"output\": \"[TMP_BASE]/zip-example_tmp_1/output.zip\", \"root\"
: \"[TMP_BASE]/zip-example_tmp_1\", \"use_python_zip\": false}" |
53 }, | 58 }, |
54 { | 59 { |
55 "cmd": [ | 60 "cmd": [ |
56 "python", | 61 "python", |
57 "-u", | 62 "-u", |
58 "RECIPE_MODULE[zip]/resources/zip.py" | 63 "RECIPE_MODULE[zip]/resources/zip.py" |
59 ], | 64 ], |
| 65 "cwd": "[SLAVE_BUILD]", |
60 "name": "zipping more", | 66 "name": "zipping more", |
61 "stdin": "{\"entries\": [{\"path\": \"[TMP_BASE]/zip-example_tmp_1/a\", \"ty
pe\": \"file\"}, {\"path\": \"[TMP_BASE]/zip-example_tmp_1/b\", \"type\": \"file
\"}, {\"path\": \"[TMP_BASE]/zip-example_tmp_1/sub\", \"type\": \"dir\"}], \"out
put\": \"[TMP_BASE]/zip-example_tmp_1/more.zip\", \"root\": \"[TMP_BASE]/zip-exa
mple_tmp_1\", \"use_python_zip\": false}" | 67 "stdin": "{\"entries\": [{\"path\": \"[TMP_BASE]/zip-example_tmp_1/a\", \"ty
pe\": \"file\"}, {\"path\": \"[TMP_BASE]/zip-example_tmp_1/b\", \"type\": \"file
\"}, {\"path\": \"[TMP_BASE]/zip-example_tmp_1/sub\", \"type\": \"dir\"}], \"out
put\": \"[TMP_BASE]/zip-example_tmp_1/more.zip\", \"root\": \"[TMP_BASE]/zip-exa
mple_tmp_1\", \"use_python_zip\": false}" |
62 }, | 68 }, |
63 { | 69 { |
64 "cmd": [ | 70 "cmd": [ |
65 "echo", | 71 "echo", |
66 "[TMP_BASE]/zip-example_tmp_1/more.zip" | 72 "[TMP_BASE]/zip-example_tmp_1/more.zip" |
67 ], | 73 ], |
| 74 "cwd": "[SLAVE_BUILD]", |
68 "name": "report" | 75 "name": "report" |
69 }, | 76 }, |
70 { | 77 { |
71 "cmd": [ | 78 "cmd": [ |
72 "python", | 79 "python", |
73 "-u", | 80 "-u", |
74 "RECIPE_MODULE[zip]/resources/unzip.py" | 81 "RECIPE_MODULE[zip]/resources/unzip.py" |
75 ], | 82 ], |
| 83 "cwd": "[SLAVE_BUILD]", |
76 "name": "unzipping", | 84 "name": "unzipping", |
77 "stdin": "{\"output\": \"[TMP_BASE]/zip-example_tmp_1/output\", \"use_python
_zip\": false, \"zip_file\": \"[TMP_BASE]/zip-example_tmp_1/output.zip\"}" | 85 "stdin": "{\"output\": \"[TMP_BASE]/zip-example_tmp_1/output\", \"use_python
_zip\": false, \"zip_file\": \"[TMP_BASE]/zip-example_tmp_1/output.zip\"}" |
78 }, | 86 }, |
79 { | 87 { |
80 "cmd": [ | 88 "cmd": [ |
81 "find" | 89 "find" |
82 ], | 90 ], |
83 "cwd": "[TMP_BASE]/zip-example_tmp_1/output", | 91 "cwd": "[TMP_BASE]/zip-example_tmp_1/output", |
84 "name": "listing" | 92 "name": "listing" |
85 }, | 93 }, |
86 { | 94 { |
87 "cmd": [ | 95 "cmd": [ |
88 "python", | 96 "python", |
89 "-u", | 97 "-u", |
90 "\nimport os, sys\nfrom common import chromium_utils\n\nif os.path.exists(
sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n", | 98 "\nimport os, sys\nfrom common import chromium_utils\n\nif os.path.exists(
sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n", |
91 "[TMP_BASE]/zip-example_tmp_1" | 99 "[TMP_BASE]/zip-example_tmp_1" |
92 ], | 100 ], |
| 101 "cwd": "[SLAVE_BUILD]", |
93 "name": "rmtree cleanup", | 102 "name": "rmtree cleanup", |
94 "~followup_annotations": [ | 103 "~followup_annotations": [ |
95 "@@@STEP_LOG_LINE@python.inline@@@@", | 104 "@@@STEP_LOG_LINE@python.inline@@@@", |
96 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", | 105 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", |
97 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils@@@", | 106 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils@@@", |
98 "@@@STEP_LOG_LINE@python.inline@@@@", | 107 "@@@STEP_LOG_LINE@python.inline@@@@", |
99 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", | 108 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", |
100 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[
1])@@@", | 109 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[
1])@@@", |
101 "@@@STEP_LOG_END@python.inline@@@" | 110 "@@@STEP_LOG_END@python.inline@@@" |
102 ] | 111 ] |
103 } | 112 } |
104 ] | 113 ] |
OLD | NEW |