From a25fcf4369a6310d7b35e1e4aedffdc81acd201d Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 14 Nov 2019 10:02:41 -0800 Subject: [PATCH] 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 --- test/composertest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/composertest.py b/test/composertest.py index b96cada4..f2abc697 100755 --- a/test/composertest.py +++ b/test/composertest.py @@ -31,9 +31,9 @@ class VirtMachineTestCase(unittest.TestCase): def setUpTestMachine(self, image, identity_file=None): self.network = testvm.VirtNetwork(0) 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: - 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)) self.machine.start()