blob: 88881b6972bc92b394741afa45cafec2428de148 [file] [log] [blame]
[
{
"cmd": [],
"name": "Create test file"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"myfile",
"[CLEANUP]/tmp_tmp_1/content/myfile.txt"
],
"infra_step": true,
"name": "Create test file.write file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@myfile.txt@myfile@@@",
"@@@STEP_LOG_END@myfile.txt@@@"
]
},
{
"cmd": [
"python3",
"RECIPE_MODULE[flutter::zip]/resources/zip.py"
],
"name": "Create test file.create zip",
"stdin": "{\"entries\": [{\"path\": \"[CLEANUP]/tmp_tmp_1/content\", \"type\": \"dir\"}], \"output\": \"[CLEANUP]/tmp_tmp_1/myzip.zip\", \"root\": \"[CLEANUP]/tmp_tmp_1/content\"}",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"rmtree",
"[CLEANUP]/tmp_tmp_1"
],
"infra_step": true,
"name": "Create test file.Delete tmp folder",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"name": "$result"
}
]