From 882fec820e79c76072b2178acd683101a474649c Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 28 Aug 2019 11:51:32 +0200 Subject: #915 check ogAdmServer binary existence when running pythong tests Currently, if you try to run the python test without the ogAdmServer binary, it will throw an exception. This patch adds a check to ensure the existence of the ogAdmServer binary at the beginning of the script. # python3 run-tests.py You need to build the ogAdmServer binary to run these tests :-) --- tests/run-tests.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/run-tests.py') diff --git a/tests/run-tests.py b/tests/run-tests.py index 126105d..1a59a34 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -26,6 +26,10 @@ if os.getuid() is not 0: print('You need to be root to run these tests :-)') exit() +if os.path.isfile('../ogAdmServer') is not True: + print('You need to build the ogAdmServer binary to run these tests :-)') + exit() + start_mysql(); subprocess.Popen(['../ogAdmServer', '-f', 'config/ogAdmServer.cfg']) -- cgit v1.2.3-18-g5258