summaryrefslogtreecommitdiffstats
path: root/tests/run-tests.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2019-08-28 11:51:32 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-08-28 17:54:57 +0200
commit882fec820e79c76072b2178acd683101a474649c (patch)
tree4cee4fbafe8cf542cfe97d01a0d5d15fd0abf2b2 /tests/run-tests.py
parente397e7930fd2099bd71de9ed8a7f9f46b6ce7310 (diff)
#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 :-)
Diffstat (limited to 'tests/run-tests.py')
-rwxr-xr-xtests/run-tests.py4
1 files changed, 4 insertions, 0 deletions
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'])