tests: Boot the test images with graphics=True
This adds vnc to the libvirt config, which makes booting the live-iso work. Related: rhbz#1770193
This commit is contained in:
parent
64998d853d
commit
a25fcf4369
@ -31,9 +31,9 @@ class VirtMachineTestCase(unittest.TestCase):
|
|||||||
def setUpTestMachine(self, image, identity_file=None):
|
def setUpTestMachine(self, image, identity_file=None):
|
||||||
self.network = testvm.VirtNetwork(0)
|
self.network = testvm.VirtNetwork(0)
|
||||||
if identity_file:
|
if identity_file:
|
||||||
self.machine = testvm.VirtMachine(image, networking=self.network.host(), cpus=2, memory_mb=2048, identity_file=identity_file)
|
self.machine = testvm.VirtMachine(image, networking=self.network.host(), cpus=2, memory_mb=2048, identity_file=identity_file, graphics=True)
|
||||||
else:
|
else:
|
||||||
self.machine = testvm.VirtMachine(image, networking=self.network.host(), cpus=2, memory_mb=2048)
|
self.machine = testvm.VirtMachine(image, networking=self.network.host(), cpus=2, memory_mb=2048, graphics=True)
|
||||||
|
|
||||||
print("Starting virtual machine '{}'".format(image))
|
print("Starting virtual machine '{}'".format(image))
|
||||||
self.machine.start()
|
self.machine.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user