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

Unified Diff: recipe_modules/file/examples/copy.expected/basic.json

Issue 2918463002: [recipe_modules/file] add real file module to engine. (Closed)
Patch Set: rebase Created 3 years, 7 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
Index: recipe_modules/file/examples/copy.expected/basic.json
diff --git a/recipe_modules/file/examples/copy.expected/basic.json b/recipe_modules/file/examples/copy.expected/basic.json
new file mode 100644
index 0000000000000000000000000000000000000000..9038ac203bf1dd75b71fcbaf362959bb2cdf7fcc
--- /dev/null
+++ b/recipe_modules/file/examples/copy.expected/basic.json
@@ -0,0 +1,77 @@
+[
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "Here is some text data",
+ "[START_DIR]/some file"
+ ],
+ "infra_step": true,
+ "name": "write a file"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "[START_DIR]/some file",
+ "[START_DIR]/new path"
+ ],
+ "infra_step": true,
+ "name": "copy it"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "[START_DIR]/new path",
+ "/path/to/tmp/"
+ ],
+ "infra_step": true,
+ "name": "read it"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "move",
+ "[START_DIR]/new path",
+ "[START_DIR]/new new path"
+ ],
+ "infra_step": true,
+ "name": "move it"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "[START_DIR]/new new path",
+ "/path/to/tmp/"
+ ],
+ "infra_step": true,
+ "name": "read it (2)"
+ },
+ {
+ "name": "$result",
+ "recipe_result": null,
+ "status_code": 0
+ }
+]

Powered by Google App Engine
This is Rietveld 408576698