remove coverage run -a

最新版coverage的-a和-p参数不能同时用
This commit is contained in:
Falseen 2015-11-01 19:36:20 +08:00
parent c02fcbf746
commit fe4b35fb0a
5 changed files with 27 additions and 4 deletions

23
tests/test_udp_src.sh Normal file
View file

@ -0,0 +1,23 @@
#!/bin/bash
PYTHON="coverage run -p"
mkdir -p tmp
$PYTHON shadowsocks/local.py -c tests/aes.json -v &
LOCAL=$!
$PYTHON shadowsocks/server.py -c tests/aes.json --forbidden-ip "" -v &
SERVER=$!
sleep 3
python tests/test_udp_src.py
r=$?
kill -s SIGINT $LOCAL
kill -s SIGINT $SERVER
sleep 2
exit $r