Selaa lähdekoodia

Merge pull request #597 from TechEmpower/issue588

In response to issue 588
Brian Hauer 12 vuotta sitten
vanhempi
commit
5625eeb515
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      toolset/benchmark/benchmarker.py

+ 4 - 0
toolset/benchmark/benchmarker.py

@@ -110,6 +110,10 @@ class Benchmarker:
     self.__setup_database()
     self.__setup_database()
     self.__setup_client()
     self.__setup_client()
 
 
+    # Check if wrk (and wrk-pipeline) is installed and executable, if not, raise an exception
+    if not (os.access("/usr/local/bin/wrk", os.X_OK) and os.access("/usr/local/bin/wrk-pipeline", os.X_OK)):
+      raise Exception("wrk and/or wrk-pipeline are not properly installed. Not running tests.")
+
     ##########################
     ##########################
     # Run tests
     # Run tests
     ##########################
     ##########################