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

Side by Side Diff: scripts/slave/recipe_modules/chromedriver/example.expected/Android_ChromeDriver_basic.json

Issue 2181693004: Add a check that the Chromedriver prebuilt name is expected. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Changed to Sam's impl Created 4 years, 4 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
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 5 "-u",
6 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", 6 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
7 "--master", 7 "--master",
8 "chromium.testing.master", 8 "chromium.testing.master",
9 "--builder", 9 "--builder",
10 "Android ChromeDriver Tests Example", 10 "Android ChromeDriver Tests Example",
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 "name": "Download Prebuilts" 109 "name": "Download Prebuilts"
110 }, 110 },
111 { 111 {
112 "cmd": [ 112 "cmd": [
113 "python", 113 "python",
114 "-u", 114 "-u",
115 "[BUILD]/scripts/slave/gsutil_download.py", 115 "[BUILD]/scripts/slave/gsutil_download.py",
116 "--url", 116 "--url",
117 "gs://chromedriver-data/prebuilts", 117 "gs://chromedriver-data/prebuilts",
118 "--dst", 118 "--dst",
119 "[TMP_BASE]/prebuilt_tmp_1/build.zip", 119 "[TMP_BASE]/prebuilt_tmp_1",
120 "--partial-name", 120 "--partial-name",
121 "gs://chromedriver-data/prebuilts/r" 121 "gs://chromedriver-data/prebuilts/r"
122 ], 122 ],
123 "cwd": "[SLAVE_BUILD]", 123 "cwd": "[SLAVE_BUILD]",
124 "name": "Download Prebuilts.download latest prebuilt", 124 "name": "Download Prebuilts.download latest prebuilt",
125 "~followup_annotations": [ 125 "~followup_annotations": [
126 "@@@STEP_NEST_LEVEL@1@@@" 126 "@@@STEP_NEST_LEVEL@1@@@"
127 ] 127 ]
128 }, 128 },
129 { 129 {
130 "cmd": [ 130 "cmd": [
131 "python", 131 "python",
132 "-u", 132 "-u",
133 "\nimport json, os, sys\nif os.path.exists(sys.argv[1]) and os.path.isdir( sys.argv[1]):\n with open(sys.argv[2], 'w') as f:\n json.dump(os.listdir(sys .argv[1]), f)\n",
134 "[TMP_BASE]/prebuilt_tmp_1",
135 "/path/to/tmp/json"
136 ],
137 "name": "Download Prebuilts.listdir get prebuilt filename",
138 "~followup_annotations": [
139 "@@@STEP_NEST_LEVEL@1@@@",
140 "@@@STEP_LOG_LINE@json.output@[@@@",
141 "@@@STEP_LOG_LINE@json.output@ \"r111111.zip\"@@@",
142 "@@@STEP_LOG_LINE@json.output@]@@@",
143 "@@@STEP_LOG_END@json.output@@@",
144 "@@@STEP_LOG_LINE@python.inline@@@@",
145 "@@@STEP_LOG_LINE@python.inline@import json, os, sys@@@",
146 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]) and os.path .isdir(sys.argv[1]):@@@",
147 "@@@STEP_LOG_LINE@python.inline@ with open(sys.argv[2], 'w') as f:@@@",
148 "@@@STEP_LOG_LINE@python.inline@ json.dump(os.listdir(sys.argv[1]), f)@ @@",
149 "@@@STEP_LOG_END@python.inline@@@"
150 ]
151 },
152 {
153 "cmd": [
154 "python",
155 "-u",
133 "RECIPE_MODULE[build::zip]/resources/unzip.py" 156 "RECIPE_MODULE[build::zip]/resources/unzip.py"
134 ], 157 ],
135 "name": "Download Prebuilts.unzip prebuilt", 158 "name": "Download Prebuilts.unzip prebuilt",
136 "stdin": "{\"output\": \"[TMP_BASE]/prebuilt_tmp_1/unzipped\", \"zip_file\": \"[TMP_BASE]/prebuilt_tmp_1/build.zip\"}", 159 "stdin": "{\"output\": \"[TMP_BASE]/prebuilt_tmp_1/unzipped\", \"zip_file\": \"[TMP_BASE]/prebuilt_tmp_1/r111111.zip\"}",
137 "~followup_annotations": [ 160 "~followup_annotations": [
138 "@@@STEP_NEST_LEVEL@1@@@" 161 "@@@STEP_NEST_LEVEL@1@@@"
139 ] 162 ]
140 }, 163 },
141 { 164 {
142 "cmd": [ 165 "cmd": [
143 "python", 166 "python",
144 "-u", 167 "-u",
145 "\nimport shutil\nimport sys\nshutil.move(sys.argv[1], sys.argv[2])\n", 168 "\nimport shutil\nimport sys\nshutil.move(sys.argv[1], sys.argv[2])\n",
146 "[TMP_BASE]/prebuilt_tmp_1/unzipped/chromedriver", 169 "[TMP_BASE]/prebuilt_tmp_1/unzipped/chromedriver",
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 "~followup_annotations": [ 722 "~followup_annotations": [
700 "@@@STEP_NEST_LEVEL@1@@@" 723 "@@@STEP_NEST_LEVEL@1@@@"
701 ] 724 ]
702 }, 725 },
703 { 726 {
704 "name": "$result", 727 "name": "$result",
705 "recipe_result": null, 728 "recipe_result": null,
706 "status_code": 0 729 "status_code": 0
707 } 730 }
708 ] 731 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698