Avoid permission problems
This commit is contained in:
parent
88cb57ca7a
commit
8b8c17f8b8
@ -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'})
|
||||||
|
Loading…
Reference in New Issue
Block a user