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>
qemu.tests: fix issue abort can't find_pci device in guest

new device not always should in last line of lspci output, update
pci_find_cmd to reading new device from diff of lscpi output;

Signed-off-by: Xu Tian <xutian@redhat.com>
qemu.tests: print device hotpulg/unplug repeat step info to log file

Signed-off-by: Xu Tian <xutian@redhat.com>
Merge pull request #1374 from xutian/fix_block_hotplug

qemu.tests: fix issue abort can't find_pci device in guest
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
tests: Fix and update for netstress_kill_guest.py script

Update netperf link and find netperf in shared/deps by default.
Also support download netperf from networks.

Add docstring and error.context for this test case.
Put netperf to /var/tmp by default in host and guest.
Also make it configurable.

Signed-off-by: Feng Yang <fyang@redhat.com>
Move get_correspond_ip() to virttest.utils_net.py

This function may used by other script.

Signed-off-by: Feng Yang <fyang@redhat.com>