Browse Source

fix coverage

auth
clowwindy 10 years ago
parent
commit
60c16fae69
  1. 2
      .travis.yml
  2. 2
      tests/test.py

2
.travis.yml

@ -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 -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"
- coverage report --include=shadowsocks/*
- coverage combine && coverage report --include=shadowsocks/*

2
tests/test.py

@ -44,7 +44,7 @@ parser.add_argument('--with-coverage', action='store_true', default=None)
config = parser.parse_args()
if config.with_coverage:
python = ['coverage', 'run', '-a']
python = ['coverage', 'run', '-p', '-a']
client_args = python + ['shadowsocks/local.py', '-v']
server_args = python + ['shadowsocks/server.py', '-v']

Loading…
Cancel
Save