summaryrefslogtreecommitdiff
path: root/scripts/update_payload/test_utils.py
diff options
context:
space:
mode:
authorAmin Hassani <ahassani@google.com>2017-12-07 12:13:03 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-12-14 15:26:58 -0800
commitf1d6ceaedbcf81044d6af6b716c63ed79996f0a4 (patch)
tree6d9ff030936cf241c7871ccef4266284f8fe1325 /scripts/update_payload/test_utils.py
parent9fd76b6b1dc4a80f8464427e981220c29abc1d66 (diff)
update_payload: Add XZ compression support
This patch adds support for checking a payload that has REPLACE_XZ operations. REPLACE_XZ was added in minor version 3. BUG=chromium:758792 TEST=unittests pass; paycheck.py with a xz generated payload pass; CQ-DEPEND=CL:823234 Change-Id: If82c767a201b189e464f459d5c19485e5278d9b1 Reviewed-on: https://chromium-review.googlesource.com/823227 Commit-Ready: Amin Hassani <ahassani@chromium.org> Tested-by: Amin Hassani <ahassani@chromium.org> Reviewed-by: Ben Chan <benchan@chromium.org> Reviewed-by: Sen Jiang <senj@chromium.org>
Diffstat (limited to 'scripts/update_payload/test_utils.py')
-rw-r--r--scripts/update_payload/test_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/update_payload/test_utils.py b/scripts/update_payload/test_utils.py
index 61a91f53..bfdc40e6 100644
--- a/scripts/update_payload/test_utils.py
+++ b/scripts/update_payload/test_utils.py
@@ -282,7 +282,7 @@ class EnhancedPayloadGenerator(PayloadGenerator):
Args:
is_kernel: whether this is a kernel (True) or rootfs (False) operation
- op_type: one of REPLACE, REPLACE_BZ, MOVE or BSDIFF
+ op_type: one of REPLACE, REPLACE_BZ, REPLACE_XZ, MOVE or BSDIFF
src_extents: list of (start, length) pairs indicating src block ranges
src_length: size of the src data in bytes (needed for BSDIFF)
dst_extents: list of (start, length) pairs indicating dst block ranges