diff options
author | Andrew <andrewlassalle@chromium.org> | 2019-11-26 12:50:57 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-27 09:04:15 +0000 |
commit | 3dfd8031a9d48a88bd0b16a03520082061d893ff (patch) | |
tree | b31fbd473b1ec0805361b174611731941a277a14 /scripts/update_payload/format_utils_unittest.py | |
parent | 4b00ae16c992f7913bc026d3027b41d8b271f436 (diff) |
update_payload: Adapt subprocess.check_call to py3
In python3, file descriptors(fd) are not passed to child processes, so
the call to 'puffin' fails because puffin cannot receive the file
descriptors passed by applier.py. In python3, there is an option to set
a fd inheritable so the subprocess can access the fd.
BUG=chromium:1027199
TEST=cros_generate_update_payload --src_image ~/trunk/src/build/images/eve/R80-12705.0.2019_11_23_1521-a1/dlc/dummy-dlc/dummy-package/dlc.img --image ~/trunk/src/build/images/eve/R80-12713.0.2019_11_26_0806-a1/dlc/dummy-dlc/dummy-package/dlc.img --output ~/delete/ttt3 --check
TEST=cros_generate_update_payload --src_image ~/trunk/src/build/images/eve/R80-12697.0.2019_11_21_1601-a1/chromiumos_test_image.bin --image ~/trunk/src/build/images/eve/R80-12713.0.2019_11_26_0806-a1/chromiumos_image.bin --check --output ~/delete/ttt5
Change-Id: I5d68d5a7ce0a128f2438b0d9f2e32167463661c2
Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/system/update_engine/+/1938007
Tested-by: Andrew Lassalle <andrewlassalle@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Amin Hassani <ahassani@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions