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

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

Issue 2918463002: [recipe_modules/file] add real file module to engine. (Closed)
Patch Set: fix rmtree 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..64067d0035ec6a046c3dc7abc3296db11aa71427
--- /dev/null
+++ b/recipe_modules/file/examples/copy.expected/basic.json
@@ -0,0 +1,81 @@
+[
+ {
+ "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",
+ "timeout": 30
+ },
+ {
+ "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",
+ "timeout": 30
+ },
+ {
+ "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",
+ "timeout": 5
+ },
+ {
+ "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)",
+ "timeout": 30
+ },
+ {
+ "name": "$result",
+ "recipe_result": null,
+ "status_code": 0
+ }
+]

Powered by Google App Engine
This is Rietveld 408576698