virttest: Log top commit message

Rather than just print the top SHA1, it is frequently
useful for quick reference to print the top commit
message.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Get rid of the installer registration concept

This is a legacy of the days where the kvm kernel modules would
be installed either by compiling the source code or via "kmod"
like packages, and the loading and unloading of kernel modules
would depend on that.

Nowadays, we can assume that the kvm modules always come from
the kernel packages.

One last piece of refiniment here would be to remove the module
loading/unloading feature from the base installer code.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
libvirt.tests.virsh_cmd: Fix invalid syntax

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.virsh: Fix void return of domiftune

That function was supposed to return a CmdResult object,
but it wasn't due to a rebase mistake.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt.virsh_cmd: virsh_desc PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt.virsh_cmd: virsh_numatune PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt.virsh_cmd: virsh_node_memtune PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt.virsh_cmd: virsh_snapshot_disk PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
shutdown: PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
v2v: convert_remote_vm PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.qemu_monitor: PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu.tests.virtio_console: Fix variable overwriting

err value was overwritten by thread return number which resulted in
incorrectly reported failed tests as pass.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_virtio_port: Allow to reload loss idx from outside the thread

Usually the index of lost characters is reloaded while reconnection.
This patch creates a function, which can be called from outside of this
thread in case we want to reload this index elswhere. Additionally booth
(debug and normal) threads use the same code now.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
shared.scripts.virtio_console_guest: Remove sleeps from reconnect loopback

virtio_console is now able to handle the reconnection without any sleep
thus we can use busy wait and use the console immediatelly when it's
created.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.virtio_console: Harden the interrupted_loopback setting

Tweak the config to maximize interrupted_loopback test
* short interruption is 0s
* short test_time is 0.1s
* tweak the acceptable_loss
* increase the number of acceptable test_time repetition

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_virtio_port: Prevent infinite loop

Temove the infinite loop from send and receiver threads.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.virtio_console: Prevent infinite loop in some test on failure

Some tests were voulnurable to infinite loop due of not finished
background thread. Use funcatexit to register function, which sets
the exit_event and causes the background threads to finish.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.virtio_console: Reorder interrupted_loopback and fix 80 chars

No actual change, only put the interrupted_loopback initialization
before the thread initialization (in case of failure it's quicker)
and fix the 80 characters line width.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.virtio_console: New interrupted loopback mode

Currently qemu dies when we try to remove and plug the port couple of
times without delay.

This modification allows to execute x (virtio_console_micro_repeates)
interuptions, where we don't check anything, only do them as fast as
possible. After that we execute normal loop where the transfer is
checked after each interruption.

As the port might not be openable for some time, the guest_worker
supports multiple attemps to open the port. Don't forget to remove
the old /tmp/virtio_console_guest.py* files in order to use the new one.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>