fix test execution on travis which was broken / unify running test locally and on travis

This commit is contained in:
Benjamin Sergeant 2019-04-19 09:46:17 -07:00
parent a2d170f415
commit b74bccee0a
2 changed files with 4 additions and 1 deletions

View File

@ -48,7 +48,7 @@ test_server:
# env TEST=Websocket_chat make test # env TEST=Websocket_chat make test
# env TEST=heartbeat make test # env TEST=heartbeat make test
test: test:
(cd test ; python2.7 run.py) python2.7 test/run.py
ws_test: all ws_test: all
(cd ws ; bash test_ws.sh) (cd ws ; bash test_ws.sh)

View File

@ -482,4 +482,7 @@ def main():
if __name__ == '__main__': if __name__ == '__main__':
root = os.path.dirname(os.path.realpath(__file__))
os.chdir(root)
main() main()