libvirt: Add virsh dompmsuspend command test

New testcase:virsh_dompmsuspend.py/cfg
dompmsuspend(name, target, duration=0, **dargs)
dompmwakeup(name, **dargs)
Make tcpdump output more detail

sometimes during virt test, fail to login VM
due to cant verify VM IP, have a more detail
log of tcpdump may helpful in such situation

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
run: Add option --selinux-setup.
run: make --no-downloads works for --bootstrap.

When we use run with --bootstrap, the --no-downloads will be ignored.

This patch make it works for --bootstrap.
Merge pull request #1242 from Guannan-Ren/master

libvirt: Add virsh dompmsuspend command test
qemu: Remove the update_config in control.kernel-version

Remove it as the script is already removed from qemu.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
tests/whql_hck_client_install.py: Convert file to unix format

Turns out that the file was in DOS/Windows format. I
suppose it was developed on a Windows box. Let's fix
that.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
whql_hck_client_install.py: Replace incompatible py 2.4 exit() call

We can get to the same result with a return statement

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1321 from autotest/fix-character-encoding

Fix character encoding
Merge pull request #1316 from ypu/update_config

qemu: Remove the update_config in control.kernel-version
Merge pull request #1313 from yangdongsheng/run

Run
qemu: Do not call update_config.py in control.kernel-version.

update_config.py was removed, and we need to update config files.

Signed-off-by: Feng Yang <fyang@redhat.com>
Merge pull request #1322 from autotest/fix-kernel-version

qemu: Do not call update_config.py in control.kernel-version.
qemu.tests.virtio_console: Use correct keywords for start_vm

start_vm should accept yes/no instead of 0

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.virtio_console: Force new params in vm.create()

This test started with "start_vm = no" and we are starting the VM
manually. It's not guaranteed, that params were updated in preprocess
so we need to make sure params were updated by calling create with
new params.

One example of incorrect params is when VM exists and is alive from
previous test. In such case preprocess skips initialization (start_vm
= no") and vm.create() destroys and recreates the VM from previous test.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_virtio_port: Check both size and presence of guest script

This patch adds additional check for compiled guest script file.
Sometimes the script exists in the guest machine, and has the correct
version, but wasn't successfully compiled. Originally this wouldn't be
dettect and compilation wouldn't be executed, making all following
tests to fail.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_vm: Return the qemu output when it defuncts during .create()

The new defunct() check in VM.create() returns only custom message.
Some negative tests need also the original qemu_output(). This patch
adds this output into the exception.

Additionally it catches the problems when the original PID doesn't exsit
(qemu died very quickly).

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge pull request #1323 from autotest/github-1315

Github 1315
Merge pull request #1308 from xiaoqing-wei/tcpdump_more_verbose

Make tcpdump output more detail
virt-ppm_util: Just print a warning rather than fail if we have no PIL package.

As PIL is not available in several released OS, then import PIL will break
the all tests in autotest/virt-tests.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>