Dan Shi has uploaded a new change for review.
https://chromium-review.googlesource.com/332061
Change subject: [autotest] Automatically sparse files greater than 512MB
for fastboot call
......................................................................
[autotest] Automatically sparse files greater than 512MB for fastboot call
When flash large image files, e.g., system.img, fastboot might fail due
to the size limit. For example, fastboot call will post following
warning:
target reported max download size of 536870912 bytes
system.img file larger than that may fail the flash attempt. To make the
flash more reliable, pass `-s 512M` to fastboot command so it can
automatically sparse files greater than 512MB.
BUG=b:27463702
TEST=local run test
Change-Id: I655e7d5701862a913f79bf7c21211168b53970ce
---
M server/hosts/adb_host.py
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/hosts/adb_host.py b/server/hosts/adb_host.py
index 4855864..2f42e52 100644
--- a/server/hosts/adb_host.py
+++ b/server/hosts/adb_host.py
@@ -1155,7 +1155,8 @@
if image not in ANDROID_IMAGES:
continue
logging.info('Flashing %s...', image_file)
- self.fastboot_run('flash %s %s' % (image[:-4], image_file))
+ self.fastboot_run('-S 512M flash %s %s' %
+ (image[:-4], image_file))
if image == ANDROID_BOOTLOADER:
self.fastboot_run('reboot-bootloader')
self.wait_up(command=FASTBOOT_CMD)
--
To view, visit
https://chromium-review.googlesource.com/332061
To unsubscribe, visit
https://chromium-review.googlesource.com/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I655e7d5701862a913f79bf7c21211168b53970ce
Gerrit-PatchSet: 1
Gerrit-Project: chromiumos/third_party/autotest
Gerrit-Branch: master
Gerrit-Owner: Dan Shi <
ds...@google.com>