tests.vlan: some issues fix

This patch fix some issues of this script:
1. kill netcat server if any exceptions happens
2. split this test to two
3. make this script follow pep8 rules

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
tp-qemu: update iptables command

NFS server has connected before qemu vm start, so we should reject pack which
status match 'RELATED' or 'ESTABLISHED' to block connection, not 'NEW'.

Signed-off-by: Xu Tian <xutian@redhat.com>
qemu.test: add test for kill guest during ping

This patch add test for kill geust during ping

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
test.iofuzz: some modifications of iofuzz

This patch make some modifications on iofuzz:
1. When session is not response, check whether qemu or guest kernel
   crash occurs.
2. Check whether qemu or guest kernel crash occurs after fuzz test.
3. Make the script follow pep8 rules
4. enable image snapshot.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
Merge pull request #19 from humanux/vlan

tests.vlan: some issues fix
Merge pull request #20 from humanux/iofuzz

test.iofuzz: some modifications of iofuzz
Merge pull request #21 from humanux/ping_kill_test

qemu.test: add test for kill guest during ping
Merge pull request #32 from spcui/change_media

qemu.tests.change_media: Add sleep time after change cdrom in guest
Merge pull request #31 from xutian/fix_nfs_corrupt

tp-qemu: update iptables command
qemu.tests.physical_resources_check: update get cpu number method for windows guest

Add new function get_cpu_number() to get cpu sockets/cores/threads number.

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