diff options
author | Tao Bao <tbao@google.com> | 2019-04-02 16:25:03 -0700 |
---|---|---|
committer | Tao Bao <tbao@google.com> | 2019-04-02 18:17:45 -0700 |
commit | 9648990b5bd68fc0fb10ffd3193d108b1a056125 (patch) | |
tree | 5b27cc6323b75465bb5965378c6c4ec86d175d1a /scripts/update_payload/format_utils.py | |
parent | cda3c034bc46a4040dcd31a3a512ffd56dfe28c2 (diff) |
Abort the payload generation on extract_image errors.
extract_image, in particular extract_image_brillo, spawns multiple
processes to handle the unzipping and unsparsing works in parallel.
However, `wait` doesn't abort the execution on child process errors.
This CL tracks the PIDs of the worker processes. It then waits for each
individual PID and aborts appropriately. No-op for the CrOS path.
Bug: 129773355
Test: Inject error into simg2img. brillo_update_payload aborts.
Change-Id: Id87aa5216fee7e9db132b7f7947742d2ac11b2bc
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions