mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
partition_table: Improve an error msg and doc
Closes https://github.com/espressif/esp-idf/issues/9846
This commit is contained in:
@@ -409,6 +409,16 @@ factory, app, factory, , 1M,
|
||||
t = gen_esp32part.PartitionTable.from_csv(csv)
|
||||
t.verify()
|
||||
|
||||
def test_overlap_part_table(self):
|
||||
csv = """
|
||||
# Name,Type, SubType,Offset,Size
|
||||
nvs, data, nvs, 0x0000, 0x6000,
|
||||
phy_init, data, phy, , 0x1000,
|
||||
factory, app, factory, , 1M,
|
||||
"""
|
||||
with self.assertRaisesRegex(gen_esp32part.InputError, r'CSV Error at line 3: Partitions overlap. Partition sets offset 0x0'):
|
||||
gen_esp32part.PartitionTable.from_csv(csv)
|
||||
|
||||
def test_only_one_otadata(self):
|
||||
csv_txt = """
|
||||
# Name,Type, SubType,Offset,Size
|
||||
|
Reference in New Issue
Block a user