def test_volume_structure_mbr_conflicting_filesystem(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
filesystem: ext4
""")
self.assertEqual(
str(cm.exception),
'mbr structures must not specify a file system')
评论列表
文章目录