From 0b5c0813fa253e4f020fc4ee09a2501f96329337 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Mon, 29 Mar 2021 08:33:03 +0200 Subject: #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. --- tests/run-tests.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/run-tests.py') 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) -- cgit v1.2.3-18-g5258