spice - added qxl vga support

This commit is contained in:
ziajka 2017-06-22 12:56:28 +02:00
parent 1b6cefd82b
commit 7447b3190d
2 changed files with 3 additions and 1 deletions

View File

@ -1309,7 +1309,8 @@ class QemuVM(BaseNode):
if self._console: if self._console:
return ["-spice", return ["-spice",
"addr={},port={},disable-ticketing".format(self._manager.port_manager.console_host, self._console)] "addr={},port={},disable-ticketing".format(self._manager.port_manager.console_host, self._console),
"-vga", "qxl"]
else: else:
return [] return []

View File

@ -371,6 +371,7 @@ def test_spice_option(vm, tmpdir, loop, fake_qemu_img_binary):
vm._console = 5905 vm._console = 5905
options = loop.run_until_complete(asyncio.async(vm._build_command())) options = loop.run_until_complete(asyncio.async(vm._build_command()))
assert '-spice addr=127.0.0.1,port=5905,disable-ticketing' in ' '.join(options) assert '-spice addr=127.0.0.1,port=5905,disable-ticketing' in ' '.join(options)
assert '-vga qxl' in ' '.join(options)
def test_disk_options_multiple_disk(vm, tmpdir, loop, fake_qemu_img_binary): def test_disk_options_multiple_disk(vm, tmpdir, loop, fake_qemu_img_binary):