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

Unified Diff: recipe_modules/shutil/example.expected/basic.json

Issue 1923013002: Revert of recipe engine: extract infra-specific paths out of the engine (Closed) Base URL: https://github.com/luci/recipes-py.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_modules/shutil/example.py ('k') | recipe_modules/step/api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/shutil/example.expected/basic.json
diff --git a/recipe_modules/shutil/example.expected/basic.json b/recipe_modules/shutil/example.expected/basic.json
index a5b1cc047c005c216405faebbdac3b36ad3d2894..58a06c26be206974b54679818f5307b6678c78c9 100644
--- a/recipe_modules/shutil/example.expected/basic.json
+++ b/recipe_modules/shutil/example.expected/basic.json
@@ -6,6 +6,7 @@
"\nimport os\nimport sys\nos.remove(sys.argv[1])\n",
"bar"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "foo",
"~followup_annotations": [
"@@@STEP_LOG_LINE@python.inline@@@@",
@@ -23,6 +24,7 @@
"/fake/dir",
"/path/to/tmp/json"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "listdir fake dir",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@[@@@",
@@ -43,6 +45,7 @@
"some",
"command"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "manipulate file 1"
},
{
@@ -50,20 +53,23 @@
"some",
"command"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "manipulate file 2"
},
{
"cmd": [
"echo",
- "[TMP]/prefix_a_tmp_1"
- ],
+ "[TMP_BASE]/prefix_a_tmp_1"
+ ],
+ "cwd": "[SLAVE_BUILD]",
"name": "print prefix_a"
},
{
"cmd": [
"echo",
- "[TMP]/prefix_b_tmp_2"
- ],
+ "[TMP_BASE]/prefix_b_tmp_2"
+ ],
+ "cwd": "[SLAVE_BUILD]",
"name": "print prefix_b"
},
{
@@ -74,6 +80,7 @@
"abcde",
"tmp_file.txt"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "write_simple"
},
{
@@ -84,6 +91,7 @@
"tmp_file.txt",
"/path/to/tmp/"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "read_simple"
},
{
@@ -94,6 +102,7 @@
"! ~&&",
"tmp_file.txt"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "write_symbols"
},
{
@@ -104,6 +113,7 @@
"tmp_file.txt",
"/path/to/tmp/"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "read_symbols"
},
{
@@ -114,6 +124,7 @@
"abcde fgh",
"tmp_file.txt"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "write_spaces"
},
{
@@ -124,6 +135,7 @@
"tmp_file.txt",
"/path/to/tmp/"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "read_spaces"
},
{
@@ -134,6 +146,7 @@
"ab\ncd\nefg\n",
"tmp_file.txt"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "write_multiline"
},
{
@@ -144,6 +157,7 @@
"tmp_file.txt",
"/path/to/tmp/"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "read_multiline"
},
{
@@ -151,9 +165,10 @@
"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",
- "[TMP]/copytree_example_tmp",
+ "[SLAVE_BUILD]/copytree_example_tmp",
"511"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "makedirs makedirs",
"~followup_annotations": [
"@@@STEP_LOG_LINE@python.inline@@@@",
@@ -174,19 +189,21 @@
"-u",
"\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
"some file content",
- "[TMP]/copytree_example_tmp/dummy_file"
- ],
- "name": "write [TMP]/copytree_example_tmp/dummy_file"
+ "[SLAVE_BUILD]/copytree_example_tmp/dummy_file"
+ ],
+ "cwd": "[SLAVE_BUILD]",
+ "name": "write [SLAVE_BUILD]/copytree_example_tmp/dummy_file"
},
{
"cmd": [
"python",
"-u",
"\nimport shutil\nimport sys\nshutil.copytree(sys.argv[1], sys.argv[2], symlinks=bool(sys.argv[3]))\n",
- "[TMP]/copytree_example_tmp",
- "[TMP]/copytree_example_tmp2",
+ "[SLAVE_BUILD]/copytree_example_tmp",
+ "[SLAVE_BUILD]/copytree_example_tmp2",
"0"
],
+ "cwd": "[SLAVE_BUILD]",
"name": "copytree"
},
{
@@ -194,10 +211,11 @@
"python",
"-u",
"\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
- "[TMP]/copytree_example_tmp2/dummy_file",
- "/path/to/tmp/"
- ],
- "name": "read [TMP]/copytree_example_tmp2/dummy_file"
+ "[SLAVE_BUILD]/copytree_example_tmp2/dummy_file",
+ "/path/to/tmp/"
+ ],
+ "cwd": "[SLAVE_BUILD]",
+ "name": "read [SLAVE_BUILD]/copytree_example_tmp2/dummy_file"
},
{
"cmd": [
@@ -205,8 +223,9 @@
"-u",
"\nimport glob\nimport sys\nwith open(sys.argv[1], 'w') as f:\n f.write('\\n'.join(glob.glob(sys.argv[2])))\n",
"/path/to/tmp/",
- "[TMP]/copytree_example_tmp/*"
- ],
+ "[SLAVE_BUILD]/copytree_example_tmp/*"
+ ],
+ "cwd": "[SLAVE_BUILD]",
"name": "glob"
},
{
@@ -214,8 +233,9 @@
"python",
"-u",
"\nimport shutil, sys\nshutil.rmtree(sys.argv[1])\n",
- "[TMP]/copytree_example_tmp"
- ],
+ "[SLAVE_BUILD]/copytree_example_tmp"
+ ],
+ "cwd": "[SLAVE_BUILD]",
"name": "cleanup",
"~followup_annotations": [
"@@@STEP_LOG_LINE@python.inline@@@@",
@@ -229,8 +249,9 @@
"python",
"-u",
"\nimport shutil, sys\nshutil.rmtree(sys.argv[1])\n",
- "[TMP]/copytree_example_tmp2"
- ],
+ "[SLAVE_BUILD]/copytree_example_tmp2"
+ ],
+ "cwd": "[SLAVE_BUILD]",
"name": "cleanup2",
"~followup_annotations": [
"@@@STEP_LOG_LINE@python.inline@@@@",
« no previous file with comments | « recipe_modules/shutil/example.py ('k') | recipe_modules/step/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698