diff options
author | Andrew <andrewlassalle@chromium.org> | 2019-11-25 09:37:27 -0800 |
---|---|---|
committer | Nicolas Boichat <drinkcat@chromium.org> | 2019-11-26 02:00:34 +0000 |
commit | 4b00ae16c992f7913bc026d3027b41d8b271f436 (patch) | |
tree | 3f40541fc81a02b0264f4e34db746389f57ea776 /scripts/update_payload/format_utils_unittest.py | |
parent | 8a1de4b6b8e368d7bd2b92f015a83f49764f7b79 (diff) |
update_payload: Remove 'buffer' in applier.py
'memoryview' replaces 'buffer' in python3, but not all the signatures are the
same in both functions. The output of memoryview has to be converted to bytes,
but buffer's doesn't. This difference could cause the script to fail when
using python2.
Set the type of multiple strings to byte.
BUG=chromium:1027199
TEST=cros_generate_update_payload --image ~/trunk/src/build/images/eve/R80-12705.0.2019_11_23_1521-a1/chromiumos_image.bin --src_image ~/trunk/src/build/images/eve/R80-12705.0.2019_11_23_1521-a1/chromiumos_image.bin --output ~/delete/ttt2 --check
TEST=cros_workon_make update_payload --test
TEST=tryjob. Note: tryjob fails because tryjob runs without the updates to the sdk from this CL. see chromium:1028178
Change-Id: Ic05892d1e26f12e33a661b590039821329379042
Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/system/update_engine/+/1933128
Tested-by: Andrew Lassalle <andrewlassalle@chromium.org>
Reviewed-by: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Auto-Submit: Andrew Lassalle <andrewlassalle@chromium.org>
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions