def test_volume_structure_type_role_conflict_2(self):
# type:none means there's no partition, so you can't have a role of
# system-{boot,data}.
with ExitStack() as resources:
cm = resources.enter_context(
self.assertRaises(GadgetSpecificationError))
parse("""
volumes:
first-image:
schema: mbr
bootloader: u-boot
structure:
- type: ef
size: 100
role: mbr
second-image:
structure:
- type: bare
size: 200
role: system-data
""")
self.assertEqual(
str(cm.exception),
'Invalid gadget.yaml: structure role/type conflict')
评论列表
文章目录