From b74bccee0abc13b53eb23c5dd90da9b3206cdff8 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant <“bsergean@gmail.com”> Date: Fri, 19 Apr 2019 09:46:17 -0700 Subject: [PATCH] fix test execution on travis which was broken / unify running test locally and on travis --- makefile | 2 +- test/run.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 38adfb4a..6e64f961 100644 --- a/makefile +++ b/makefile @@ -48,7 +48,7 @@ test_server: # env TEST=Websocket_chat make test # env TEST=heartbeat make test test: - (cd test ; python2.7 run.py) + python2.7 test/run.py ws_test: all (cd ws ; bash test_ws.sh) diff --git a/test/run.py b/test/run.py index 488a298c..78284d31 100755 --- a/test/run.py +++ b/test/run.py @@ -482,4 +482,7 @@ def main(): if __name__ == '__main__': + root = os.path.dirname(os.path.realpath(__file__)) + os.chdir(root) + main()