mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
partition_table: Check - partition names must be unique
This commit is contained in:
@@ -166,6 +166,15 @@ second, app, ota_0, 0x200000, 1M
|
||||
t = PartitionTable.from_csv(csv)
|
||||
t.verify()
|
||||
|
||||
def test_unique_name_fail(self):
|
||||
csv = """
|
||||
first, app, factory, 0x100000, 1M
|
||||
first, app, ota_0, 0x200000, 1M
|
||||
"""
|
||||
with self.assertRaisesRegexp(InputError, "Partition names must be unique"):
|
||||
t = PartitionTable.from_csv(csv)
|
||||
t.verify()
|
||||
|
||||
class BinaryOutputTests(unittest.TestCase):
|
||||
def test_binary_entry(self):
|
||||
csv = """
|
||||
|
Reference in New Issue
Block a user