libvirt: Add virsh net-info command test

New testcase: virsh_net_info.py/cfg
virttest.virsh: virsh net-info function
net_info(network, extra="", **dargs)
key_event_form.py: Rewrite from wxPython to PyGTK.

Signed-off-by: Milan Barta <mbarta@redhat.com>
rv_input.py: Rewrite from wxPython to PyGTK.

Signed-off-by: Milan Barta <mbarta@redhat.com>
tests/rv_clearx.py: Removing clearx

It's a lot better to clean interface from rv_connect

Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
qemu/tests/smartcard_setup.py: Clear gnome session.

Clear gnome session in the beginning of the test.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
fullscreen_setup.py: Changing starting vdagent under root.

Signed-off-by: Vimal Patel <vipatel@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
libvirt-tests: Fix some emulatorpin errors

* Backup vm's xml for restoration. or the vm xml will change for
  set_emulatorpin cases.

* Move the test process into a try/finally block to ensure environment
  is cleaned up even if exception raised.

* Fix typo in cfg file causing duplicated test name: s/config/live

Signed-off-by: Hao Liu <hliu@redhat.com>
Enable AHCI booting and sync Win2008-32 unattended file format

As NT 6.X OS has a limitation that install on non-AHCI hard drive
would result further booting on AHCI BSOD, this is the solution
to fix, per http://support.microsoft.com/kb/922976
and found that Win2008-32 lacks some cmd to update registry(64 has)
so sync it to same as 64bits, replaced some cmd(software install).

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
qemu/tests/rv_audio.py: Increase default acceptable pause

Some problems with alsa and loopback devices cause
some stuttering in the audio stream. Let's make the
rv_audio test more lenient, as we're interested in
seeing if there is *some* playback, not focusing in
the quality of the stream.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
qemu/tests/rv_smartcard.py: Rename Gemplus to Gemalto

The smartcard reader is emulated with new name - Gemalto
instead of Gemplus. So check for this name.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
client_guest_shutdown.py: Destroy VM gracefully.

If the shutdown is not successful, destroy the VM
gracefully, so It does not stay alive.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
qemu/cfg/tests-spice.cfg: Add rv file and gui tests.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
tests/rv_build_install.py: Change path to deploy epel repo func.

- Change path to deploy epel repository function which was moved
  to utils_spice under virttest.
- rv_clearx test does not exist anymore, use function from
  utils_spice as well.
- small refactor to fix warnings from pylint.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
virttest/utils_spice.py: Adding several functions.

Adding functions to install remote-viewer on windows client,
to generate a file with information required for connection
and also restarting of user interface on any VM (so far
linux only) and function for installing epel repo.

Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
rv_connect.py: Add support for proxy, file and prepare win client

This patch changes how remote-viewer is executed, so that we can get
it to work on windows machines, with proxy and connecting using
a provided file.
Delete useless keys send for r-v menu test.

Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
shared/unattended/RHEL-6-spice.ks: Add deps for GUI testing

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
JeOS 19 ks: Fill up disk image so empty space can be removed

Add a last step post install that will make the JeOS
image to fill all 10GB of disk, so that we can easily
create an image with no empty space by using qemu-img

qemu-img convert -O qcow2 jeos-19-x86_64.qcow2 jeos-19-x86_64-output.qcow2

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1225 from autotest/jeos-19-fillup

JeOS 19 ks: Fill up disk image so empty space can be removed
run: Add --no-cleanup option

For debugging purposes, not cleaning up env files,
test tmp files and aexpect tmp files might be desirable.
So add this option to our test runner.

CC: Lukas Doktor <ldoktor@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1226 from autotest/no-cleanup-run-opt

run: Add --no-cleanup option