mirror of https://git.48k.eu/ogserver
#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
parent
e397e7930f
commit
882fec820e
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue