fix coverage
This commit is contained in:
parent
134bf332a4
commit
60c16fae69
2 changed files with 2 additions and 2 deletions
|
@ -34,4 +34,4 @@ script:
|
||||||
- python tests/test.py --with-coverage -s tests/ipv6.json -c tests/ipv6-client-side.json
|
- python tests/test.py --with-coverage -s tests/ipv6.json -c tests/ipv6-client-side.json
|
||||||
- python tests/test.py --with-coverage -b "-m rc4-md5 -k testrc4 -s 127.0.0.1 -p 8388" -a "-m rc4-md5 -k testrc4 -s 127.0.0.1 -p 8388 -l 1081"
|
- python tests/test.py --with-coverage -b "-m rc4-md5 -k testrc4 -s 127.0.0.1 -p 8388" -a "-m rc4-md5 -k testrc4 -s 127.0.0.1 -p 8388 -l 1081"
|
||||||
- python tests/test.py --with-coverage -b "-m aes-256-cfb -k testrc4 -s 127.0.0.1 -p 8388" -a "-m aes-256-cfb -k testrc4 -s 127.0.0.1 -p 8388 -l 1081"
|
- python tests/test.py --with-coverage -b "-m aes-256-cfb -k testrc4 -s 127.0.0.1 -p 8388" -a "-m aes-256-cfb -k testrc4 -s 127.0.0.1 -p 8388 -l 1081"
|
||||||
- coverage report --include=shadowsocks/*
|
- coverage combine && coverage report --include=shadowsocks/*
|
||||||
|
|
|
@ -44,7 +44,7 @@ parser.add_argument('--with-coverage', action='store_true', default=None)
|
||||||
config = parser.parse_args()
|
config = parser.parse_args()
|
||||||
|
|
||||||
if config.with_coverage:
|
if config.with_coverage:
|
||||||
python = ['coverage', 'run', '-a']
|
python = ['coverage', 'run', '-p', '-a']
|
||||||
|
|
||||||
client_args = python + ['shadowsocks/local.py', '-v']
|
client_args = python + ['shadowsocks/local.py', '-v']
|
||||||
server_args = python + ['shadowsocks/server.py', '-v']
|
server_args = python + ['shadowsocks/server.py', '-v']
|
||||||
|
|
Loading…
Add table
Reference in a new issue