#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 :-)
master
Javier Sánchez Parra 2019-08-28 11:51:32 +02:00 committed by OpenGnSys Support Team
parent e397e7930f
commit 882fec820e
1 changed files with 4 additions and 0 deletions

View File

@ -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'])