bugfix: kill the stunnel when cleanup 63/60763/2
authordongwenjuan <dong.wenjuan@zte.com.cn>
Wed, 8 Aug 2018 09:18:41 +0000 (17:18 +0800)
committerdongwenjuan <dong.wenjuan@zte.com.cn>
Thu, 9 Aug 2018 06:02:51 +0000 (14:02 +0800)
Popen.terminate() will kill the child process, but if you set the
shell argument to True, this is the process ID of the spawned shell,
so the stunnels are still exit.It will cause the failure of stunnel
setup in the next test runtime.

see: https://stackoverflow.com/questions/4789837/how-to-terminate-a-python-subprocess-launched-with-shell-true/4791612#4791612

Change-Id: I578611510f5bd1eb0dbd9a08ab408ccf101594f7
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>

No differences found