Avoid permission problems

This commit is contained in:
Demi Marie Obenour 2020-11-27 20:05:18 -05:00
parent 88cb57ca7a
commit 8b8c17f8b8
No known key found for this signature in database
GPG Key ID: 28A45C93B0B5B6E0

View File

@ -249,7 +249,6 @@ class TC_00_DispVM(qubes.tests.QubesTestCase):
}) })
vm = self.dispvm = self.app.add_new_vm(qubes.vm.dispvm.DispVM, vm = self.dispvm = self.app.add_new_vm(qubes.vm.dispvm.DispVM,
name='test-dispvm', template=self.appvm) name='test-dispvm', template=self.appvm)
self.loop.run_until_complete(vm.create_on_disk())
self.assertIs(vm.volume_config['root']['source'], self.assertIs(vm.volume_config['root']['source'],
self.template.volumes['root']) self.template.volumes['root'])
# create new mock, so new template will get different volumes # create new mock, so new template will get different volumes
@ -287,7 +286,6 @@ class TC_00_DispVM(qubes.tests.QubesTestCase):
vm = self.dispvm = self.app.add_new_vm(qubes.vm.dispvm.DispVM, vm = self.dispvm = self.app.add_new_vm(qubes.vm.dispvm.DispVM,
name='test-dispvm', template=self.appvm) name='test-dispvm', template=self.appvm)
self.assertTrue(vm.events_enabled) self.assertTrue(vm.events_enabled)
self.loop.run_until_complete(self.dispvm.create_on_disk())
# create new mock, so new template will get different volumes # create new mock, so new template will get different volumes
self.app.pools['default'] = mock.Mock(**{ self.app.pools['default'] = mock.Mock(**{
'init_volume.return_value.pool': 'default'}) 'init_volume.return_value.pool': 'default'})