| 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..1a881fd56ebf80cee1398b62cd438c49280be8c9
|
| --- /dev/null
|
| +++ b/recipe_modules/file/examples/copytree.expected/basic.json
|
| @@ -0,0 +1,365 @@
|
| +[
|
| + {
|
| + "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\"",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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/",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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/",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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/",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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*",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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/",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "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/*\"",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
|
| + "@@@STEP_LOG_LINE@json.output@}@@@",
|
| + "@@@STEP_LOG_END@json.output@@@"
|
| + ]
|
| + },
|
| + {
|
| + "name": "$result",
|
| + "recipe_result": null,
|
| + "status_code": 0
|
| + }
|
| +]
|
|
|