aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipes/upload_dm_results.expected/failed_all.json
diff options
context:
space:
mode:
authorGravatar Robert Iannucci <iannucci@google.com>2017-07-07 14:36:58 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-10 13:46:35 +0000
commit8cd50418afc6bf07448beb5980ac1d6c1f9fbd86 (patch)
treed66422c329b76e8e1849da69675d800575019b31 /infra/bots/recipes/upload_dm_results.expected/failed_all.json
parent818ac5a00dfd570d2b291b7524a70ecd4ef55770 (diff)
Remove dependency on recipe_engine/shutil.
R=borenet@google.com Bug: chromium:739984 Change-Id: I077c4e6f494eb7e93851201120048ba1ef5faa07 Reviewed-on: https://skia-review.googlesource.com/21921 Commit-Queue: Eric Boren <borenet@google.com> Reviewed-by: Eric Boren <borenet@google.com>
Diffstat (limited to 'infra/bots/recipes/upload_dm_results.expected/failed_all.json')
-rw-r--r--infra/bots/recipes/upload_dm_results.expected/failed_all.json66
1 files changed, 30 insertions, 36 deletions
diff --git a/infra/bots/recipes/upload_dm_results.expected/failed_all.json b/infra/bots/recipes/upload_dm_results.expected/failed_all.json
index 2966786e78..563b37d1ae 100644
--- a/infra/bots/recipes/upload_dm_results.expected/failed_all.json
+++ b/infra/bots/recipes/upload_dm_results.expected/failed_all.json
@@ -3,76 +3,70 @@
"cmd": [
"python",
"-u",
- "\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",
- "[START_DIR]/tmp_upload",
- "511"
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "ensure-directory",
+ "--mode",
+ "0777",
+ "[START_DIR]/tmp_upload"
],
"infra_step": true,
- "name": "makedirs tmp dir",
- "~followup_annotations": [
- "@@@STEP_LOG_LINE@python.inline@@@@",
- "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
- "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
- "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
- "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
- "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
- "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
- "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
- "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
- "@@@STEP_LOG_END@python.inline@@@"
- ]
+ "name": "makedirs tmp dir"
},
{
"cmd": [
"python",
"-u",
- "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
"[START_DIR]/dm/dm.json",
"[START_DIR]/tmp_upload"
],
+ "infra_step": true,
"name": "copy dm.json"
},
{
"cmd": [
"python",
"-u",
- "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
"[START_DIR]/dm/verbose.log",
"[START_DIR]/tmp_upload"
],
+ "infra_step": true,
"name": "copy verbose.log"
},
{
"cmd": [
"python",
"-u",
- "\nimport os\nimport sys\nos.remove(sys.argv[1])\n",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "remove",
"[START_DIR]/dm/dm.json"
],
- "name": "rm old dm.json",
- "~followup_annotations": [
- "@@@STEP_LOG_LINE@python.inline@@@@",
- "@@@STEP_LOG_LINE@python.inline@import os@@@",
- "@@@STEP_LOG_LINE@python.inline@import sys@@@",
- "@@@STEP_LOG_LINE@python.inline@os.remove(sys.argv[1])@@@",
- "@@@STEP_LOG_END@python.inline@@@"
- ]
+ "infra_step": true,
+ "name": "rm old dm.json"
},
{
"cmd": [
"python",
"-u",
- "\nimport os\nimport sys\nos.remove(sys.argv[1])\n",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "remove",
"[START_DIR]/dm/verbose.log"
],
- "name": "rm old verbose.log",
- "~followup_annotations": [
- "@@@STEP_LOG_LINE@python.inline@@@@",
- "@@@STEP_LOG_LINE@python.inline@import os@@@",
- "@@@STEP_LOG_LINE@python.inline@import sys@@@",
- "@@@STEP_LOG_LINE@python.inline@os.remove(sys.argv[1])@@@",
- "@@@STEP_LOG_END@python.inline@@@"
- ]
+ "infra_step": true,
+ "name": "rm old verbose.log"
},
{
"cmd": [