Skip to content

Commit

Permalink
[infra] Use adb push --sync
Browse files Browse the repository at this point in the history
Change-Id: I316035e6d22bb1e3d075b54b99343312271377e9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/565004
Commit-Queue: Eric Boren <[email protected]>
Reviewed-by: Joe Gregorio <[email protected]>
  • Loading branch information
erock2112 authored and SkCQ committed Aug 3, 2022
1 parent 2035d99 commit 770620d
Show file tree
Hide file tree
Showing 27 changed files with 86 additions and 1 deletion.
2 changes: 1 addition & 1 deletion infra/bots/recipe_modules/flavor/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def copy_directory_contents_to_device(self, host, device):
contents = self.m.file.glob_paths('ls %s/*' % host,
host, '*',
test_data=['foo.png', 'bar.jpg'])
args = contents + [device]
args = ['--sync'] + contents + [device]
self._adb('push --sync %s/* %s' % (host, device), 'push', *args)

def copy_directory_contents_to_host(self, device, host):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skia/resources/bar.jpg",
"[START_DIR]/skia/resources/foo.png",
"/sdcard/revenge_of_the_skiabot/resources"
Expand Down Expand Up @@ -409,6 +410,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skp/bar.jpg",
"[START_DIR]/skp/foo.png",
"/sdcard/revenge_of_the_skiabot/skps"
Expand Down Expand Up @@ -618,6 +620,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skimage/bar.jpg",
"[START_DIR]/skimage/foo.png",
"/sdcard/revenge_of_the_skiabot/images"
Expand Down Expand Up @@ -827,6 +830,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/svg/bar.jpg",
"[START_DIR]/svg/foo.png",
"/sdcard/revenge_of_the_skiabot/svgs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skia/resources/bar.jpg",
"[START_DIR]/skia/resources/foo.png",
"/sdcard/revenge_of_the_skiabot/resources"
Expand Down Expand Up @@ -442,6 +443,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skp/bar.jpg",
"[START_DIR]/skp/foo.png",
"/sdcard/revenge_of_the_skiabot/skps"
Expand Down Expand Up @@ -651,6 +653,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skimage/bar.jpg",
"[START_DIR]/skimage/foo.png",
"/sdcard/revenge_of_the_skiabot/images"
Expand Down Expand Up @@ -860,6 +863,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/svg/bar.jpg",
"[START_DIR]/svg/foo.png",
"/sdcard/revenge_of_the_skiabot/svgs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skia/resources/bar.jpg",
"[START_DIR]/skia/resources/foo.png",
"/sdcard/revenge_of_the_skiabot/resources"
Expand Down Expand Up @@ -425,6 +426,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skp/bar.jpg",
"[START_DIR]/skp/foo.png",
"/sdcard/revenge_of_the_skiabot/skps"
Expand Down Expand Up @@ -634,6 +636,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skimage/bar.jpg",
"[START_DIR]/skimage/foo.png",
"/sdcard/revenge_of_the_skiabot/images"
Expand Down Expand Up @@ -843,6 +846,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/svg/bar.jpg",
"[START_DIR]/svg/foo.png",
"/sdcard/revenge_of_the_skiabot/svgs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/text_blob_traces/bar.jpg",
"[START_DIR]/text_blob_traces/foo.png",
"/sdcard/revenge_of_the_skiabot/text_blob_traces"
Expand Down Expand Up @@ -441,6 +442,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skia/resources/bar.jpg",
"[START_DIR]/skia/resources/foo.png",
"/sdcard/revenge_of_the_skiabot/resources"
Expand Down Expand Up @@ -634,6 +636,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skp/bar.jpg",
"[START_DIR]/skp/foo.png",
"/sdcard/revenge_of_the_skiabot/skps"
Expand Down Expand Up @@ -843,6 +846,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skimage/bar.jpg",
"[START_DIR]/skimage/foo.png",
"/sdcard/revenge_of_the_skiabot/images"
Expand Down Expand Up @@ -1052,6 +1056,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/svg/bar.jpg",
"[START_DIR]/svg/foo.png",
"/sdcard/revenge_of_the_skiabot/svgs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skia/resources/bar.jpg",
"[START_DIR]/skia/resources/foo.png",
"/sdcard/revenge_of_the_skiabot/resources"
Expand Down Expand Up @@ -799,6 +800,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skp/bar.jpg",
"[START_DIR]/skp/foo.png",
"/sdcard/revenge_of_the_skiabot/skps"
Expand Down Expand Up @@ -1008,6 +1010,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skimage/bar.jpg",
"[START_DIR]/skimage/foo.png",
"/sdcard/revenge_of_the_skiabot/images"
Expand Down Expand Up @@ -1217,6 +1220,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/svg/bar.jpg",
"[START_DIR]/svg/foo.png",
"/sdcard/revenge_of_the_skiabot/svgs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/mskp/bar.jpg",
"[START_DIR]/mskp/foo.png",
"/sdcard/revenge_of_the_skiabot/mskp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skia/resources/bar.jpg",
"[START_DIR]/skia/resources/foo.png",
"/sdcard/revenge_of_the_skiabot/resources"
Expand Down Expand Up @@ -665,6 +666,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skp/bar.jpg",
"[START_DIR]/skp/foo.png",
"/sdcard/revenge_of_the_skiabot/skps"
Expand Down Expand Up @@ -874,6 +876,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skimage/bar.jpg",
"[START_DIR]/skimage/foo.png",
"/sdcard/revenge_of_the_skiabot/images"
Expand Down Expand Up @@ -1083,6 +1086,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/svg/bar.jpg",
"[START_DIR]/svg/foo.png",
"/sdcard/revenge_of_the_skiabot/svgs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skia/resources/bar.jpg",
"[START_DIR]/skia/resources/foo.png",
"/sdcard/revenge_of_the_skiabot/resources"
Expand Down Expand Up @@ -469,6 +470,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skp/bar.jpg",
"[START_DIR]/skp/foo.png",
"/sdcard/revenge_of_the_skiabot/skps"
Expand Down Expand Up @@ -678,6 +680,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skimage/bar.jpg",
"[START_DIR]/skimage/foo.png",
"/sdcard/revenge_of_the_skiabot/images"
Expand Down Expand Up @@ -887,6 +890,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/svg/bar.jpg",
"[START_DIR]/svg/foo.png",
"/sdcard/revenge_of_the_skiabot/svgs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skia/resources/bar.jpg",
"[START_DIR]/skia/resources/foo.png",
"/sdcard/revenge_of_the_skiabot/resources"
Expand Down Expand Up @@ -425,6 +426,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skp/bar.jpg",
"[START_DIR]/skp/foo.png",
"/sdcard/revenge_of_the_skiabot/skps"
Expand Down Expand Up @@ -634,6 +636,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skimage/bar.jpg",
"[START_DIR]/skimage/foo.png",
"/sdcard/revenge_of_the_skiabot/images"
Expand Down Expand Up @@ -843,6 +846,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/svg/bar.jpg",
"[START_DIR]/svg/foo.png",
"/sdcard/revenge_of_the_skiabot/svgs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skia/resources/bar.jpg",
"[START_DIR]/skia/resources/foo.png",
"/sdcard/revenge_of_the_skiabot/resources"
Expand Down Expand Up @@ -709,6 +710,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skp/bar.jpg",
"[START_DIR]/skp/foo.png",
"/sdcard/revenge_of_the_skiabot/skps"
Expand Down Expand Up @@ -918,6 +920,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skimage/bar.jpg",
"[START_DIR]/skimage/foo.png",
"/sdcard/revenge_of_the_skiabot/images"
Expand Down Expand Up @@ -1127,6 +1130,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/svg/bar.jpg",
"[START_DIR]/svg/foo.png",
"/sdcard/revenge_of_the_skiabot/svgs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skia/resources/bar.jpg",
"[START_DIR]/skia/resources/foo.png",
"/sdcard/revenge_of_the_skiabot/resources"
Expand Down Expand Up @@ -798,6 +799,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skp/bar.jpg",
"[START_DIR]/skp/foo.png",
"/sdcard/revenge_of_the_skiabot/skps"
Expand Down Expand Up @@ -1007,6 +1009,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skimage/bar.jpg",
"[START_DIR]/skimage/foo.png",
"/sdcard/revenge_of_the_skiabot/images"
Expand Down Expand Up @@ -1216,6 +1219,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/svg/bar.jpg",
"[START_DIR]/svg/foo.png",
"/sdcard/revenge_of_the_skiabot/svgs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skia/resources/bar.jpg",
"[START_DIR]/skia/resources/foo.png",
"/sdcard/revenge_of_the_skiabot/resources"
Expand Down Expand Up @@ -469,6 +470,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skp/bar.jpg",
"[START_DIR]/skp/foo.png",
"/sdcard/revenge_of_the_skiabot/skps"
Expand Down Expand Up @@ -678,6 +680,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/skimage/bar.jpg",
"[START_DIR]/skimage/foo.png",
"/sdcard/revenge_of_the_skiabot/images"
Expand Down Expand Up @@ -887,6 +890,7 @@
"cmd": [
"/opt/infra-android/tools/adb",
"push",
"--sync",
"[START_DIR]/svg/bar.jpg",
"[START_DIR]/svg/foo.png",
"/sdcard/revenge_of_the_skiabot/svgs"
Expand Down
Loading

0 comments on commit 770620d

Please sign in to comment.