qemu: Fix vhost params behavior.

when param[vhost]= [on, force] it create vhost-fds and pass it to
qemu vm correct way.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
shared.cfg: Add config to timedrift_monotonicity for windows guest

"date +%s%N" cannot show the current time for windows guest.

Signed-off-by: Shuping Cui <scui@redhat.com>
virttest.ppm_utils: Skip invalid ppm files

When testing the code under RHEL5, we've noticed that Windows
install tests would fail with:

Unhandled IOError: cannot identify image file [context: waiting for installation to finish]

Let's handle image comparison more carefully, returning
false if the screenshot file had any problems.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1372 from autotest/fix-image-comparison-windows

virttest.ppm_utils: Skip invalid ppm files
Merge pull request #1347 from jzupka/fix-vhost

qemu: Fix vhost params behavior.
virttest.data_dir: Delete everything inside tmp dir, not the dir itself

The way SELinux setup is dealt with makes re-creating
the tmp dir every time a problem. So clean inside of
said dir, rather than delete it entirely.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
unattended_install: Make image_backup = yes by default

Meaning successful unattended installs to create backup
copies, which prevents non-jeos runs to backup bad
images at the beginning of tests and apply them on
subsequent tests. People running unattended installs
on their grids can override that param if they want
anyway.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.env_process: Fix backup_image behavior

Using the test runner defaults, instead of backing up
an image at the end of an unattended install, we'll
end up restoring a (potentially bad) backup instead.

So if backup_image is set to 'yes', ignore restore_image.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1369 from autotest/fix-unattended-problems

Fix unattended problems
virttest.data_dir: Fix syntax bug

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1364 from spcui/timedrift_monotonicity_fix

shared.cfg: Add config to timedrift_monotonicity for windows guest
Add two functions to destroy pool and get pool uuid

Signed-off-by: Yanbing Du <ydu@redhat.com>
libvirt: Add test for pool-edit

Signed-off-by: Yanbing Du <ydu@redhat.com>