tools/check_patch.py: Make script to return failure on check errors

In order to have the checker script to be useful as an
automated test tool, make it return errors when *any*
of the checks return a proper exit code. This wasn't
done before because it took a long time to curate and
check full pylint results (even filtered) and fix
false negatives.

Now hopefully we'll catch more easily silly syntax
errors and py 2.4 non compliances in the autotest
tree.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tools/check_patch.py: Print all passed msg on clean check

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tools/check_patch.py: Update ignore pattern

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

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
propcan_unittest.py: Ignore pylint false negative

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt-libvirt: add configuration for virsh suspend

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

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libvirt: some fixes to virsh suspend test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
tools/check_patch.py: Speed and memory usage improvements

Turns out we had a bug in the code that verified whether
a file was tracked by git. With the bug fixed, a lot less
files will be scanned. Moreover, expand the list of
blacklisted extensions and paths, making it faster to
check the tree, even if you have logs and a large
data dir in it.

Also, instead of creating multiple file checker
objects, that will be stored in memory, refactor
the existing one to process several files and
use it. This greatly saves memory.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: repair problem with undefined cpu_model

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds possibility for forbid preprocess_env for multihost mig.

Useful for multihost migration when VM is already started.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds multihost cdrom tests.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Repair comment aexpect.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds possibility to choose different data directory from params.

param:
  images_base_dir = "new path"

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds migration tests with restart NFS, iSCSI server.

iSCSI test supports only tgtd implementation. But there is prepared
interface for adding other type of iSCSI server.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds file which contain patterns which should be excluded.

Adds file which contain patterns which should be excluded
from tar package distributed to clients from the server.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
tests.cpu_hotplug: Fix a bracket typo

int(params.get(...), $int) should be probably default value of ...
=> int(params.get(..., $int))

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.utils_misc: Add log_last_traceback function

This is a copy of function from autotest.client.shared.base_utils.
Keep it here for few weeks in order to allow users with old autotest
run the current virttest.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_vm: Log the original traceback when VM.create() fails

When self.make_create_command() raises an exception in VM.create()
it's catched and reraised. The problem is that the information about
actual failed line is lost. This patch logs the original traceback
and raise VMStartError instead.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu: unittest: Actually share unittest.cfg

Despite what I said in ff75623b17a4c690ed7b098d74149b8a642066b1,
we weren't actually shared qemu/tests/cfg/unittest.cfg. Fix it.

Signed-off-by: Cole Robinson <crobinso@redhat.com>