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

Unified Diff: recipe_modules/file/examples/copytree.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/copytree.expected/basic.json
diff --git a/recipe_modules/file/examples/copytree.expected/basic.json b/recipe_modules/file/examples/copytree.expected/basic.json
new file mode 100644
index 0000000000000000000000000000000000000000..49fa9cf9f65dc542943fb9baeab2ce2566784233
--- /dev/null
+++ b/recipe_modules/file/examples/copytree.expected/basic.json
@@ -0,0 +1,267 @@
+[
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "ensure-directory",
+ "--mode",
+ "0777",
+ "[START_DIR]/some dir"
+ ],
+ "infra_step": true,
+ "name": "ensure \"some dir\"",
+ "timeout": 5
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "a",
+ "[START_DIR]/some dir/a"
+ ],
+ "infra_step": true,
+ "name": "write a",
+ "timeout": 30
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "aa",
+ "[START_DIR]/some dir/aa"
+ ],
+ "infra_step": true,
+ "name": "write aa",
+ "timeout": 30
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "b",
+ "[START_DIR]/some dir/b"
+ ],
+ "infra_step": true,
+ "name": "write b",
+ "timeout": 30
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "bb",
+ "[START_DIR]/some dir/bb"
+ ],
+ "infra_step": true,
+ "name": "write bb",
+ "timeout": 30
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "c",
+ "[START_DIR]/some dir/c"
+ ],
+ "infra_step": true,
+ "name": "write c",
+ "timeout": 30
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "cc",
+ "[START_DIR]/some dir/cc"
+ ],
+ "infra_step": true,
+ "name": "write cc",
+ "timeout": 30
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "rmtree",
+ "[START_DIR]/some other dir"
+ ],
+ "infra_step": true,
+ "name": "make sure dest is gone"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copytree",
+ "[START_DIR]/some dir",
+ "[START_DIR]/some other dir"
+ ],
+ "infra_step": true,
+ "name": "copy it"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "listdir",
+ "[START_DIR]/some other dir"
+ ],
+ "infra_step": true,
+ "name": "list new dir",
+ "stdout": "/path/to/tmp/"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "glob",
+ "[START_DIR]/some other dir/*a"
+ ],
+ "infra_step": true,
+ "name": "glob *a",
+ "stdout": "/path/to/tmp/"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "[START_DIR]/some other dir/a",
+ "/path/to/tmp/"
+ ],
+ "infra_step": true,
+ "name": "read [START_DIR]/some other dir/a",
+ "timeout": 30
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "[START_DIR]/some other dir/aa",
+ "/path/to/tmp/"
+ ],
+ "infra_step": true,
+ "name": "read [START_DIR]/some other dir/aa",
+ "timeout": 30
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "remove",
+ "[START_DIR]/some other dir/a"
+ ],
+ "infra_step": true,
+ "name": "rm a",
+ "timeout": 5
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "glob",
+ "[START_DIR]/some other dir/*a"
+ ],
+ "infra_step": true,
+ "name": "glob *a (2)",
+ "stdout": "/path/to/tmp/"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "rmglob",
+ "[START_DIR]/some other dir",
+ "b*"
+ ],
+ "infra_step": true,
+ "name": "rm b*"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "listdir",
+ "[START_DIR]/some other dir"
+ ],
+ "infra_step": true,
+ "name": "list new dir (2)",
+ "stdout": "/path/to/tmp/"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "rmcontents",
+ "[START_DIR]/some other dir"
+ ],
+ "infra_step": true,
+ "name": "remove \"some other dir/*\""
+ },
+ {
+ "name": "$result",
+ "recipe_result": null,
+ "status_code": 0
+ }
+]

Powered by Google App Engine
This is Rietveld 408576698