Эх сурвалжийг харах

868 adding dropwizard mongodb

had to update bechmark config should be called dropwizard-mongodb so that it didn't conflict with other tests and edit the directories in setup.py
mcocciaTE 11 жил өмнө
parent
commit
4f113484f1

+ 1 - 1
dropwizard-mongodb/benchmark_config

@@ -1,5 +1,5 @@
 {
-  "framework": "dropwizard",
+  "framework": "dropwizard-mongodb",
   "tests": [{
     "default": {
       "setup_file": "setup",

+ 2 - 2
dropwizard-mongodb/setup.py

@@ -8,8 +8,8 @@ home = expanduser("~")
 
 def start(args, logfile, errfile):
     try:
-        subprocess.check_call("mvn clean package;", shell=True, cwd="dropwizard", stderr=errfile, stdout=logfile)
-        subprocess.Popen("java -jar target/dropwizard-mongodb-0.0.1-SNAPSHOT.jar server hello-world.yml", shell=True, cwd="dropwizard", stderr=errfile, stdout=logfile)
+        subprocess.check_call("mvn clean package;", shell=True, cwd="dropwizard-mongodb", stderr=errfile, stdout=logfile)
+        subprocess.Popen("java -jar target/dropwizard-mongodb-0.0.1-SNAPSHOT.jar server hello-world.yml", shell=True, cwd="dropwizard-mongodb", stderr=errfile, stdout=logfile)
         return 0
     except subprocess.CalledProcessError:
         return 1