def test_volume_structure_role_system_data_bad_label(self):
with ExitStack() as resources:
cm = resources.enter_context(
self.assertRaises(GadgetSpecificationError))
parse("""\
volumes:
first-image:
bootloader: u-boot
structure:
- type: 00000000-0000-0000-0000-0000feedface
size: 200
role: system-data
filesystem-label: foobar
""")
self.assertEqual(
str(cm.exception),
('`role: system-data` structure must have an implicit label, '
"or 'writable': foobar"))
评论列表
文章目录