提交 f8e32048 编写于 作者: L Lukáš Doktor 提交者: Lucas Meneghel Rodrigues

virtio_console: Remove unnecessary print

This patch removes debug print which somehow made it to upstream, plus
two long line fixes. There are no other (fixable) pylint errors now.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 37a1a43d
......@@ -861,7 +861,6 @@ def run_virtio_console(test, params, env):
interruption = _s4
session = vm.wait_for_login()
ret = session.cmd_status(params.get("check_s4_support_cmd"))
print repr(ret)
if ret:
raise error.TestNAError("Suspend to disk S4 not supported.")
set_s4_cmd = params.get('set_s4_cmd')
......@@ -1352,9 +1351,11 @@ def run_virtio_console(test, params, env):
"name=%s"
% (port_type, pci_id, port, port))
if console == "no":
vm.virtio_ports.append(kvm_virtio_port.VirtioSerial(port, port, None))
vm.virtio_ports.append(kvm_virtio_port.VirtioSerial(port, port,
None))
else:
vm.virtio_ports.append(kvm_virtio_port.VirtioConsole(port, port, None))
vm.virtio_ports.append(kvm_virtio_port.VirtioConsole(port, port,
None))
if ret != "":
logging.error(ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册