KVM Test: Update for making netperf.py more stable
commitd26dcdce49bb12302db363752ab4abb5e34c4e2f
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Sat, 21 May 2011 04:39:55 +0000 (21 04:39 +0000)
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Sat, 21 May 2011 04:39:55 +0000 (21 04:39 +0000)
tree81d0f3c89c4eeef6f19a752428651325ca2742d2
parent5145dd9c1822ede4f1f676a599f9efcb8b548ca5
KVM Test: Update for making netperf.py more stable

1. Stop tcpdump by close()
Current we stop tcpdump by sending SIGSTOP to tcpdump process,
and do not do any clean up. e.g. release the lock.  Then send
SIGCOT to tcpdump process again. But if we fail continue tcpdump
process. Framework will think tcpdump still work and do not
start a new one in next case.
Then autotest could not refresh address_cache after guest's ip changed
So directly close() tcpdump, It will be started at the beginning of
next case.

2. kill netserver properly
netperf test doesn't handle all exceptions correctly, some exception
cause netserver isn't be killed, and the following netperf test will
fail. This patch will fix this problem.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Signed-off-by: Feng Yang <fyang@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5368 592f7852-d20e-0410-864c-8624ca9c26a4
client/virt/tests/netperf.py