virttest/env_process: Kill VMs with deleted disks

when disks are removed during postprocess and the VM is used
in next test, disks are recreated in filesystem, but VM still
uses the old ones. This might be confusing and misleading.
Destroy the VM in such cases.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.utils_test: Fix broken import

Fix the import bug introduced in 121af473.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt: Renamed ElementTree/Path module files

Signed-off-by: Chris Evich <cevich@redhat.com>
Refactoring the config files for spice tests.

Refactoring the config files by moving all the separate
cfg files per test to one, and removing the redundancies
set in each one. Refactoring the base tests-spice.cfg
to clean up the redundancies also and split up the tests
per platform to be tested on.

Signed-off-by: Vimal Patel <vipatel@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
Adding the ability to handle remote-viewer password tests.

Adding the functionality of passing a password different
then set, support negative testing, where rv_connection
is not established, and setting a password through the qemu monitor.

Signed-off-by: Vimal Patel <vipatel@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
shared/cfg/guest-os/Linux/RHEL/6.devel.*.cfg: ISO path

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
tests/rv_input.py: Minor changes.

- use yum instead of rpm,
- use nogpgcheck,
- EPEL repo link has i386 string instead of i686.
- use root account for installation.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
tests/rv_copyandpaste: Do no start vdagent and use root session.

Spice vdagent is started with gnome-session automatically and
use root session when needed since default user for spice
tests is non-root.
Do not fail test If gnome-session does not run.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
Moved verified established method from rv_connect to utils.

Moved verify established and an exception class from rv_connect
to utils_spice, to make it accessible by all spice tests.

Signed-off-by: Vimal Patel <vipatel@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
Adding a test for a clean exit of guest VM shutdown.

Signed-off-by: Vimal Patel <vipatel@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
Adding a test to shutdown both VMs for spice tests.

Adding client_guest_shutdown test to replace the default
shutdown test to shutdown both VMs used for the spice tests.

Signed-off-by: Vimal Patel <vipatel@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
shared/unattended/RHEL-6.3.ks: Start X when booting.

Start X right after boot and create test user to be used
for Spice related tests.

Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
tests/fullscreen_setup: Do not startx.

X and gnome session is started automatically after boot
for Spice related tests.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
tests/rv_logging: Use root session when needed.

Since Spice tests use test (non-root) user, use root
session when root privileges are needed.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
run: allow customization of the log directory

This will be used when running virt-tests from the QEMU Makefile.
It is better to place the logs in the QEMU build directory.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
run: exit with status code 1 if tests failed

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu_vm: exit mig_cancel test if migration fails

This cuts the time for mig_cancel to fail by ~1 minute.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests: finish changing kvm to qemu in virt_test_type

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bootstrap: rename shared/download.d to shared/downloads

This directory has a different naming convention than all the others.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bootstrap: rename jeos asset to jeos-17-64

For image assets (as opposed to ISOs, for example) it is useful if the
asset name matches the image name.  This way, the image_copy test will be
easily able to download image files that are listed in shared/downloads.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>