fix tests

This commit is contained in:
clowwindy 2014-06-01 17:24:10 +08:00
parent 2672a6378e
commit 20ba04c4ce
3 changed files with 5 additions and 4 deletions

View file

@ -4,10 +4,11 @@ python:
- 2.7
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq build-essential libssl-dev swig libevent-dev python-gevent python-m2crypto python-numpy
- pip install m2crypto gevent salsa20
- sudo apt-get install -qq build-essential libssl-dev swig python-m2crypto python-numpy
- pip install m2crypto salsa20
script:
- python test.py -c test/table.json
- python test.py -c test/aes.json
- python test.py -c test/salsa20.json
- python test.py -c test/server-multi-passwd.json
- python test.py -c test/workers.json

View file

@ -188,7 +188,7 @@ class TCPRelayHandler(object):
raise Exception('can not parse header')
addrtype, remote_addr, remote_port, header_length =\
header_result
logging.info('connecting %s:%d' % (remote_addr, remote_port))
logging.debug('connecting %s:%d' % (remote_addr, remote_port))
if is_local:
# forward address to remote
self.write_all_to_sock('\x05\x00\x00\x01' +

View file

@ -142,7 +142,7 @@ def get_config(is_local):
if config['verbose']:
level = logging.DEBUG
else:
level = logging.WARNING
level = logging.INFO
logging.getLogger('').handlers = []
logging.basicConfig(level=level,
format='%(asctime)s %(levelname)-8s %(message)s',