summaryrefslogtreecommitdiff
path: root/scripts/update_payload/checker_unittest.py
diff options
context:
space:
mode:
authorAmin Hassani <ahassani@google.com>2017-10-11 10:27:27 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-16 14:14:00 -0700
commitae85374770d4492d28e62d792824eea55349c981 (patch)
tree6c9a2649d1cba64a81982927d965becb318cde90 /scripts/update_payload/checker_unittest.py
parenta6f74d62033fb0291aa1d135fef640e26ffffab5 (diff)
update_payload: Fix larger source issue
the _CheckOperations() function passes the new usable partition size as the old usable partition size. If the source image is larger than the target image, this will be errornous as some checks fail. BUG=chromium:773336 TEST=scripts/paycheck.py --check delta.bin (10002.0.0 reef -> 10019.0.0 reef) Change-Id: I8c30129831daff8e70df3dcb9639ff240e4a37ba Reviewed-on: https://chromium-review.googlesource.com/713463 Commit-Ready: Amin Hassani <ahassani@chromium.org> Tested-by: Amin Hassani <ahassani@chromium.org> Reviewed-by: Amin Hassani <ahassani@chromium.org>
Diffstat (limited to 'scripts/update_payload/checker_unittest.py')
-rwxr-xr-xscripts/update_payload/checker_unittest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/update_payload/checker_unittest.py b/scripts/update_payload/checker_unittest.py
index a0a5056a..2e1efeb2 100755
--- a/scripts/update_payload/checker_unittest.py
+++ b/scripts/update_payload/checker_unittest.py
@@ -982,8 +982,8 @@ class PayloadCheckerTest(mox.MoxTestBase):
payload_checker.payload_type = checker._TYPE_FULL
report = checker._PayloadReport()
- args = (payload_checker.payload.manifest.install_operations, report,
- 'foo', 0, rootfs_part_size, rootfs_part_size, 0, False)
+ args = (payload_checker.payload.manifest.install_operations, report, 'foo',
+ 0, rootfs_part_size, rootfs_part_size, rootfs_part_size, 0, False)
if fail_nonexhaustive_full_update:
self.assertRaises(update_payload.PayloadError,
payload_checker._CheckOperations, *args)