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>
qemu.tests: Add a test case for change queue with migrate

Add a new test case for change queue with migrate. Update the code
to handle the serail session break during test.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
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>
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
Merge pull request #95 from ypu/netperf

generic.tests: Make the guest status collect configurable for netperf
Merge pull request #91 from ypu/system_reset

qemu.tests: Use preprocess_vm to create vm in system_reset_bootable
Merge pull request #85 from ypu/set_link

qemu.tests: Set restart_network to True when check guest network
Merge pull request #76 from ypu/balloon_fix

qemu.tests: Fix the wrong balloon type in cfg
qemu.test: Update the method for start vm in win_virtio_update

The old code will cause problems in post process for images as the
vms is set to empty.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
ping: modify the max ping packet size for windows guest

Linux support the max ping packet size is 65507, but windows is 65500.
For windows systems, MSFT has limitation for the max size 65500.

Signed-off-by: Cong Li <coli@redhat.com>
qemu.tests.multi_disk: Add check_guest_proc_scsi flag for linux guests

Check guests proc scsi only support Linux guests, so add a flag to check
it when using virtio-scsi.

Check guests proc scsi only support Linux guests, so disable for
Windows guests.

Signed-off-by: Shuping Cui <scui@redhat.com>