[Recipe Modules] remove_file_on_device was in all flavors except DefaultFlavor

Bug: skia:8901
Change-Id: Idde99d943c31ae62fcd0bc3f3b8cfc0ebc07e896
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/203340
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
This commit is contained in:
Ravi Mistry 2019-03-25 13:21:51 +00:00 committed by Skia Commit-Bot
parent cd54466473
commit 2719dff87a
32 changed files with 525 additions and 61 deletions

View File

@ -143,6 +143,10 @@ class DefaultFlavor(object):
"""Reads the specified file.""" """Reads the specified file."""
return self.m.file.read_text('read %s' % path, path) return self.m.file.read_text('read %s' % path, path)
def remove_file_on_device(self, path):
"""Removes the specified file."""
return self.m.file.remove('remove %s' % path, path)
def install(self): def install(self):
"""Run device-specific installation steps.""" """Run device-specific installation steps."""
pass pass

View File

@ -34,7 +34,7 @@
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/opt/infra-android/tools/adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -34,7 +34,7 @@
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/opt/infra-android/tools/adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -34,7 +34,7 @@
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/opt/infra-android/tools/adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -50,16 +50,35 @@
"-t", "-t",
"foo@127.0.0.1", "foo@127.0.0.1",
"cat", "cat",
"file.text" "file.txt"
], ],
"env": { "env": {
"CHROME_HEADLESS": "1", "CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"ssh",
"-oConnectTimeout=15",
"-oBatchMode=yes",
"-t",
"-t",
"foo@127.0.0.1",
"rm",
"-f",
"file.txt"
],
"env": {
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -68,7 +68,7 @@
"adb", "adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -76,9 +76,25 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -7,11 +7,24 @@
"--json-output", "--json-output",
"/path/to/tmp/json", "/path/to/tmp/json",
"copy", "copy",
"file.text", "file.txt",
"/path/to/tmp/" "/path/to/tmp/"
], ],
"infra_step": true, "infra_step": true,
"name": "read file.text" "name": "read file.txt"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"file.txt"
],
"infra_step": true,
"name": "remove file.txt"
}, },
{ {
"cmd": [ "cmd": [

View File

@ -7,11 +7,24 @@
"--json-output", "--json-output",
"/path/to/tmp/json", "/path/to/tmp/json",
"copy", "copy",
"file.text", "file.txt",
"/path/to/tmp/" "/path/to/tmp/"
], ],
"infra_step": true, "infra_step": true,
"name": "read file.text" "name": "read file.txt"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"file.txt"
],
"infra_step": true,
"name": "remove file.txt"
}, },
{ {
"cmd": [ "cmd": [

View File

@ -34,7 +34,7 @@
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/opt/infra-android/tools/adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -34,7 +34,7 @@
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/opt/infra-android/tools/adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -34,7 +34,7 @@
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/opt/infra-android/tools/adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -34,7 +34,7 @@
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/opt/infra-android/tools/adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -50,16 +50,35 @@
"-t", "-t",
"foo@127.0.0.1", "foo@127.0.0.1",
"cat", "cat",
"file.text" "file.txt"
], ],
"env": { "env": {
"CHROME_HEADLESS": "1", "CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"ssh",
"-oConnectTimeout=15",
"-oBatchMode=yes",
"-t",
"-t",
"foo@127.0.0.1",
"rm",
"-f",
"file.txt"
],
"env": {
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -7,11 +7,24 @@
"--json-output", "--json-output",
"/path/to/tmp/json", "/path/to/tmp/json",
"copy", "copy",
"file.text", "file.txt",
"/path/to/tmp/" "/path/to/tmp/"
], ],
"infra_step": true, "infra_step": true,
"name": "read file.text" "name": "read file.txt"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"file.txt"
],
"infra_step": true,
"name": "remove file.txt"
}, },
{ {
"cmd": [ "cmd": [

View File

@ -7,11 +7,24 @@
"--json-output", "--json-output",
"/path/to/tmp/json", "/path/to/tmp/json",
"copy", "copy",
"file.text", "file.txt",
"/path/to/tmp/" "/path/to/tmp/"
], ],
"infra_step": true, "infra_step": true,
"name": "read file.text" "name": "read file.txt"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"file.txt"
],
"infra_step": true,
"name": "remove file.txt"
}, },
{ {
"cmd": [ "cmd": [

View File

@ -7,11 +7,24 @@
"--json-output", "--json-output",
"/path/to/tmp/json", "/path/to/tmp/json",
"copy", "copy",
"file.text", "file.txt",
"/path/to/tmp/" "/path/to/tmp/"
], ],
"infra_step": true, "infra_step": true,
"name": "read file.text" "name": "read file.txt"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"file.txt"
],
"infra_step": true,
"name": "remove file.txt"
}, },
{ {
"cmd": [ "cmd": [

View File

@ -7,11 +7,24 @@
"--json-output", "--json-output",
"/path/to/tmp/json", "/path/to/tmp/json",
"copy", "copy",
"file.text", "file.txt",
"/path/to/tmp/" "/path/to/tmp/"
], ],
"infra_step": true, "infra_step": true,
"name": "read file.text" "name": "read file.txt"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"file.txt"
],
"infra_step": true,
"name": "remove file.txt"
}, },
{ {
"cmd": [ "cmd": [

View File

@ -7,11 +7,24 @@
"--json-output", "--json-output",
"/path/to/tmp/json", "/path/to/tmp/json",
"copy", "copy",
"file.text", "file.txt",
"/path/to/tmp/" "/path/to/tmp/"
], ],
"infra_step": true, "infra_step": true,
"name": "read file.text" "name": "read file.txt"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"file.txt"
],
"infra_step": true,
"name": "remove file.txt"
}, },
{ {
"cmd": [ "cmd": [

View File

@ -7,11 +7,24 @@
"--json-output", "--json-output",
"/path/to/tmp/json", "/path/to/tmp/json",
"copy", "copy",
"file.text", "file.txt",
"/path/to/tmp/" "/path/to/tmp/"
], ],
"infra_step": true, "infra_step": true,
"name": "read file.text" "name": "read file.txt"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"file.txt"
],
"infra_step": true,
"name": "remove file.txt"
}, },
{ {
"cmd": [ "cmd": [

View File

@ -7,11 +7,24 @@
"--json-output", "--json-output",
"/path/to/tmp/json", "/path/to/tmp/json",
"copy", "copy",
"file.text", "file.txt",
"/path/to/tmp/" "/path/to/tmp/"
], ],
"infra_step": true, "infra_step": true,
"name": "read file.text" "name": "read file.txt"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"file.txt"
],
"infra_step": true,
"name": "remove file.txt"
}, },
{ {
"cmd": [ "cmd": [

View File

@ -7,11 +7,24 @@
"--json-output", "--json-output",
"/path/to/tmp/json", "/path/to/tmp/json",
"copy", "copy",
"file.text", "file.txt",
"/path/to/tmp/" "/path/to/tmp/"
], ],
"infra_step": true, "infra_step": true,
"name": "read file.text" "name": "read file.txt"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"file.txt"
],
"infra_step": true,
"name": "remove file.txt"
}, },
{ {
"cmd": [ "cmd": [

View File

@ -7,11 +7,24 @@
"--json-output", "--json-output",
"/path/to/tmp/json", "/path/to/tmp/json",
"copy", "copy",
"file.text", "file.txt",
"/path/to/tmp/" "/path/to/tmp/"
], ],
"infra_step": true, "infra_step": true,
"name": "read file.text" "name": "read file.txt"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"file.txt"
],
"infra_step": true,
"name": "remove file.txt"
}, },
{ {
"cmd": [ "cmd": [

View File

@ -34,7 +34,7 @@
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/usr/bin/adb.1.0.35",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -34,7 +34,7 @@
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/opt/infra-android/tools/adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -34,7 +34,7 @@
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/opt/infra-android/tools/adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -34,7 +34,7 @@
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/opt/infra-android/tools/adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -34,7 +34,7 @@
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/opt/infra-android/tools/adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -34,7 +34,7 @@
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/opt/infra-android/tools/adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -34,7 +34,7 @@
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
"shell", "shell",
"cat", "cat",
"file.text" "file.txt"
], ],
"cwd": "[START_DIR]/skia", "cwd": "[START_DIR]/skia",
"env": { "env": {
@ -43,9 +43,26 @@
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "read file.text", "name": "read file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"/opt/infra-android/tools/adb",
"shell",
"rm",
"-f",
"file.txt"
],
"cwd": "[START_DIR]/skia",
"env": {
"ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey",
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -15,16 +15,28 @@
{ {
"cmd": [ "cmd": [
"[START_DIR]/skia/platform_tools/ios/bin/ios_cat_file", "[START_DIR]/skia/platform_tools/ios/bin/ios_cat_file",
"file.text" "file.txt"
], ],
"env": { "env": {
"CHROME_HEADLESS": "1", "CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "cat_file file.text", "name": "cat_file file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"[START_DIR]/skia/platform_tools/ios/bin/ios_rm",
"file.txt"
],
"env": {
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -15,16 +15,28 @@
{ {
"cmd": [ "cmd": [
"[START_DIR]/skia/platform_tools/ios/bin/ios_cat_file", "[START_DIR]/skia/platform_tools/ios/bin/ios_cat_file",
"file.text" "file.txt"
], ],
"env": { "env": {
"CHROME_HEADLESS": "1", "CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
}, },
"infra_step": true, "infra_step": true,
"name": "cat_file file.text", "name": "cat_file file.txt",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
{
"cmd": [
"[START_DIR]/skia/platform_tools/ios/bin/ios_rm",
"file.txt"
],
"env": {
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"name": "rm file.txt"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -37,7 +37,8 @@ def RunSteps(api):
if 'Build' not in api.properties['buildername']: if 'Build' not in api.properties['buildername']:
try: try:
api.flavor.copy_file_to_device('file.txt', 'file.txt') api.flavor.copy_file_to_device('file.txt', 'file.txt')
api.flavor.read_file_on_device('file.text') api.flavor.read_file_on_device('file.txt')
api.flavor.remove_file_on_device('file.txt')
api.flavor.create_clean_host_dir('results_dir') api.flavor.create_clean_host_dir('results_dir')
api.flavor.create_clean_device_dir('device_results_dir') api.flavor.create_clean_device_dir('device_results_dir')
if 'Lottie' in api.properties['buildername']: if 'Lottie' in api.properties['buildername']: