qemu.tests: Add a test case for test invalid parameters in nic device

This case is designed to test the qemu behavior when it get invcalid parameters.
Qemu should quit with some warning message but not core dump.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
generic.tests: Update the method get ncpu from server

Sometime the output from server include some unexpect letters include
some numbers. So the old method will failed to get the correct cpu
number.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests: Fix the wrong balloon type in cfg

After s4 step in balloon_fix_value, the guest memory is back to
original value. So the type for next balloon should be evict but not
enlarge.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests: Set restart_network to True when check guest network

As the link up and down in set_link may cause ip change in some enviroment.
We need add restart_network when we try to login guest after the operations.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
pxe_query_cpus: small fix of pxe_query_cpus

1. judge whether the thread is alive in every cpu info query.

2. add join() bg thread in the body.

3. set 'kill_vm_gracefully = no' in the cfg.

Signed-off-by: Cong Li <coli@redhat.com>
generic.tests: Update cfg for different host in pxe_boot

Signed-off-by: Shuping Cui <scui@redhat.com>
Merge pull request #66 from ypu/invalid_parameter

qemu.tests: Add a test case for test invalid parameters in nic device
tp-qemu: Mass PEP8 Fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
.travis.yml: Add PEP8 checks

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tp-qemu: PEP8 E714 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tp-qemu: Mass PEP8 E713 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #90 from autotest/travis-pep8

Travis pep8
qemu.tests: Use preprocess_vm to create vm in system_reset_bootable

Use preprocess_vm to handle the vm creation in this case, otherwise
some nic device init in host will be skipped.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests.live_snapshot: Correct run_file_transfer calls

Remove unused import and correct run_file_transfer calls.

Signed-off-by: Shuping Cui <scui@redhat.com>
deps: Add netperf.exe

This is necessary for netperf testing under windows
guests.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
generic.tests: Make the guest status collect configurable for netperf

Now the guest statys collect functions are implemented and tested with
RHEL and Fedora guests. It may cause problem for other guests. So set
it default to no, only enable it for RHEL and Fedora guests.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Merge pull request #89 from spcui/pxe_boot_fix

generic.tests: Update cfg for different host in pxe_boot
Merge pull request #92 from spcui/live_snapshot_fix

qemu.tests.live_snapshot: Correct run_file_transfer calls
qemu.tests.cfg: Update some config for block_resize

Since _equal suffix not support now,
so update some config for windows guest:
    1. Change guest_prepare_cmd_equal option to guest_prepare_cmd.
    2. Add rescan step for disk_update_cmd.

Signed-off-by: Shuping Cui <scui@redhat.com>
Merge pull request #86 from CongSmile/pxe-query-cpus

pxe_query_cpus: small fix of pxe_query_cpus