def test_volume_structure_mbr_conflicting_id(self):
with ExitStack() as resources:
cm = resources.enter_context(
self.assertRaises(GadgetSpecificationError))
parse("""\
volumes:
first-image:
schema: mbr
bootloader: u-boot
structure:
- type: ef
role: mbr
size: 100
id: 00000000-0000-0000-0000-0000deadbeef
""")
self.assertEqual(
str(cm.exception),
'mbr structures must not specify partition id')
评论列表
文章目录