diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-03-29 08:33:03 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-04-19 15:38:47 +0200 |
commit | 0b5c0813fa253e4f020fc4ee09a2501f96329337 (patch) | |
tree | cea608d12bef70790160df99bc3f755891492e51 /tests | |
parent | 49fc6c5c5cb951f808b7c89ccc0cf5b617605eff (diff) |
#915 Stop ogServer service in run-test.py
Python test script launches its own ogServer to run tests. If there is
another ogServer running at the same time, it interferes with tests.
Installing ogServer in a machine results in an enabled ogServer service.
Stop ogServer service before tests just in case the user installed
ogServer in the machine.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/run-tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py index 840bf5e..90a0b2d 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -34,6 +34,9 @@ if os.path.isfile('/usr/bin/valgrind') is not True: print('You need valgrind to run these tests :-)') exit() +print("Stopping ogServer service...") +subprocess.run(['systemctl', 'stop', 'ogserver']) + start_mysql(); subprocess.Popen(['valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=./valgrind-out.log ../ogserver -f config/ogserver.json'], shell=True) |