Browse Source

Toolset: Remove DB Connection messages (#2738)

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

+ 1 - 21
toolset/benchmark/benchmarker.py

@@ -549,27 +549,7 @@ class Benchmarker:
             out.write(header("Starting %s" % test.name))
             out.write(header("Starting %s" % test.name))
             out.flush()
             out.flush()
             try:
             try:
-                if test.requires_database():
-                    p = subprocess.Popen(self.database_ssh_string, stdin=subprocess.PIPE, stdout=out, stderr=out, shell=True)
-                    p.communicate("""
-            sudo restart mysql
-            sudo restart mongod
-            sudo service postgresql restart
-            sudo service cassandra restart
-            /opt/elasticsearch/elasticsearch restart
-          """)
-                    time.sleep(10)
-
-                    st = verify_database_connections([
-                        ("mysql", self.database_host, 3306),
-                        ("mongodb", self.database_host, 27017),
-                        ("postgresql", self.database_host, 5432),
-                        ("cassandra", self.database_host, 9160),
-                        ("elasticsearch", self.database_host, 9200)
-                    ])
-                    print "database connection test results:\n" + "\n".join(st[1])
-
-                self.__cleanup_leftover_processes_before_test();
+                self.__cleanup_leftover_processes_before_test()
 
 
                 if self.__is_port_bound(test.port):
                 if self.__is_port_bound(test.port):
                     # We gave it our all
                     # We gave it our all