tests: fix backup test to not break default template...
By default AppVM is template based. This means vm.root_img points at default template's root image. Change this to StandaloneVM to have independent root.img.
This commit is contained in:
parent
e557fe9989
commit
019678bf4d
@ -42,6 +42,7 @@ import qubes.config
|
|||||||
import qubes.events
|
import qubes.events
|
||||||
import qubes.backup
|
import qubes.backup
|
||||||
import qubes.exc
|
import qubes.exc
|
||||||
|
import qubes.vm.standalonevm
|
||||||
|
|
||||||
XMLPATH = '/var/lib/qubes/qubes-test.xml'
|
XMLPATH = '/var/lib/qubes/qubes-test.xml'
|
||||||
CLASS_XMLPATH = '/var/lib/qubes/qubes-class-test.xml'
|
CLASS_XMLPATH = '/var/lib/qubes/qubes-class-test.xml'
|
||||||
@ -707,7 +708,8 @@ class BackupTestsMixin(SystemTestsMixin):
|
|||||||
vmname = self.make_vm_name('testhvm1')
|
vmname = self.make_vm_name('testhvm1')
|
||||||
if self.verbose:
|
if self.verbose:
|
||||||
print >>sys.stderr, "-> Creating %s" % vmname
|
print >>sys.stderr, "-> Creating %s" % vmname
|
||||||
testvm2 = self.app.add_new_vm(qubes.vm.appvm.AppVM, name=vmname,
|
testvm2 = self.app.add_new_vm(qubes.vm.standalonevm.StandaloneVM,
|
||||||
|
name=vmname,
|
||||||
hvm=True, label='red')
|
hvm=True, label='red')
|
||||||
testvm2.create_on_disk()
|
testvm2.create_on_disk()
|
||||||
self.fill_image(testvm2.root_img, 1024*1024*1024, True)
|
self.fill_image(testvm2.root_img, 1024*1024*1024, True)
|
||||||
|
Loading…
Reference in New Issue
Block a user