Browse Source

Ensure no running DB services before Test Start (#2853)

Nate 8 years ago
parent
commit
8b846e5efe
1 changed files with 5 additions and 1 deletions
  1. 5 1
      toolset/benchmark/benchmarker.py

+ 5 - 1
toolset/benchmark/benchmarker.py

@@ -369,7 +369,11 @@ class Benchmarker:
     def __cleanup_leftover_processes_before_test(self):
         p = subprocess.Popen(self.database_ssh_string, stdin=subprocess.PIPE, shell=True, stdout=self.quiet_out, stderr=subprocess.STDOUT)
         p.communicate("""
-      sudo /etc/init.d/apache2 stop
+      sudo service mysql stop
+      sudo service mongod stop
+      sudo kill -9 $(pgrep postgres)
+      sudo kill -9 $(pgrep mysql)
+      sudo kill -9 $(pgrep mongo)
     """)
 
     ############################################################