run: Clarify how to use option --tests

This is a solution to issue #85. Give an example to
user of how to use the --tests option, to make sure
he/she doesn't try to use test numbers instead of names,
and that he/she also uses quotes for safety.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
shared.cfg: FIX virtio_console params

Few params were missing the trailing '"'.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt-libvirt: add configuration for virsh save

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libvirt: update virsh save function

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libvirt: update vm.save_to_file method

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libvirt: Add virsh save test module

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libvirt: add configuration for virsh restore

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libvirt: update virsh restore function

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libvirt: Update libvirt_vm restore_from_file method

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libvirt: add virsh restore test module

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
kvm: Add subtest block_mirror

Test block mirroring

This test verify block mirroring functionality in qemu. Tested are following scenarios:

1) Original mage is synchronized into a mirrored one and when synchronization
   is done, switch to mirrored image is verified and content of both images
   is compared.

2) Continue in mirroring after disk synchronization. Verify the changes done
   are properly mirrored.

This test has following requirement for qemu:
  - block mirroring has to be supported
  - compare command for qemu-img has to be implemented

This requirements are not included in qemu upstream yet. You can get version
with required features in repository

git://github.com/LaneWolf/qemu.git

branch blockjobs-1.2

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
kvm.tests.enospc:Fix the test cleanup fail

Currently, When run the test and do some clenup steps it always fail
with lvremove command, because the lv is in used.
Actually, the tests do fuser -k to kill users. but the it is a link
not a file as it check if it is a file.

So change the os.path.isfile to os.path.islink.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
shared.subtests.cfg.sample:add vars to make qmp_basic work

Currently, qmp_basic tests needs to change the monitors/
monitor_type/vcpu_thread_pattern in base.cfg because it has been
set for hmp as default.
To improve this, add the three vars in the subtests.cfg.sample

Signed-off-by: Mike Qiu <qiudayu@cn.ibm.com>
kvm.tests.qmp_basic:change the error class to suitable for new version of qemu

Currently, qemu has changes it's error class, this makes this test fail
To solve this problems, update the error class in the autotest.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
use -cpu ? to get support_cpu_model instead of -cpu ?list as it is invaild on latest qemu-kvm

on the latest qemu-kvm, -cpu ?list is invalid now

$ ./qemu-system-x86_64  -cpu ?list
Unable to find x86 CPU definition

$ ./qemu-system-x86_64  -cpu ?
==================
x86       Opteron_G4  AMD Opteron 62xx class CPU
x86       Opteron_G3  AMD Opteron 23xx (Gen 3 Class Opteron)

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
virt: Adds support for cancel migration in multi-host tests.

1) Start migration with stressed VM.
2) Wait cancel_delay and then cancel migration.
3) Check if machine is alive on source host.
4) Stop stress of VM.
5) Migrate machine again.
6) Check if machine is alive on destination host.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Multihost-migrate stops unnecessary vm disk clone.

If force_image_clone == no then only check vm image consistency.
If vm image consistency is good use old image else copy again from original.
Remove image if consistency is not correct after finish of test.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Move migration_multi_host_fd to framework

It allows use migration over fd in all multihost_migration tests.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Allows multihost test using of fd migration and adds new tests

New tests:
  1) change downtime of migration after start of migration
  2) change migration speed after start of migration.
  3) cancel migration after start.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
libvirt.virsh_save: Fix wrong arguments passed to virsh.restore

virsh.restore only takes the savefile path as an argument,
let's fix it.

Also, let's fix a redundant import and some inconsistent
comments.

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