Check that sum of DAP groups is smaller than super
The maximum size of all dynamic partition groups should not exceed the super size - DAP metadata size. Today the configuration of some devices don't take the metadata into acount. So turn the CheckLe into CheckLt. Also, display a warning if the reserved size for DAP metadata is less than 1M. Bug: 182431975 Test: mm -j32 check-all-partition-sizes Change-Id: Ie278f224321083e457d68da000c2b22ec8a54085
This commit is contained in:
@@ -27,8 +27,8 @@ class CheckPartitionSizesTest(test_utils.ReleaseToolsTestCase):
|
||||
dynamic_partition_list=system vendor product
|
||||
super_partition_groups=group
|
||||
super_group_partition_list=system vendor product
|
||||
super_partition_size=200
|
||||
super_super_device_size=200
|
||||
super_partition_size=202
|
||||
super_super_device_size=202
|
||||
super_group_group_size=100
|
||||
system_image_size=50
|
||||
vendor_image_size=20
|
||||
@@ -41,8 +41,8 @@ class CheckPartitionSizesTest(test_utils.ReleaseToolsTestCase):
|
||||
def test_non_ab(self):
|
||||
self.info_dict.update(common.LoadDictionaryFromLines("""
|
||||
ab_update=false
|
||||
super_partition_size=100
|
||||
super_super_device_size=100
|
||||
super_partition_size=101
|
||||
super_super_device_size=101
|
||||
""".split("\n")))
|
||||
CheckPartitionSizes(self.info_dict)
|
||||
|
||||
@@ -112,8 +112,8 @@ class CheckPartitionSizesTest(test_utils.ReleaseToolsTestCase):
|
||||
def test_vab(self):
|
||||
self.info_dict.update(common.LoadDictionaryFromLines("""
|
||||
virtual_ab=true
|
||||
super_partition_size=100
|
||||
super_super_device_size=100
|
||||
super_partition_size=101
|
||||
super_super_device_size=101
|
||||
""".split("\n")))
|
||||
CheckPartitionSizes(self.info_dict)
|
||||
|
||||
|
Reference in New Issue
Block a user