Browse Source

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 years ago
parent
commit
4f113484f1
2 changed files with 3 additions and 3 deletions
  1. 1 1
      dropwizard-mongodb/benchmark_config
  2. 2 2
      dropwizard-mongodb/setup.py

+ 1 - 1
dropwizard-mongodb/benchmark_config

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

+ 2 - 2
dropwizard-mongodb/setup.py

@@ -8,8 +8,8 @@ home = expanduser("~")
 
 
 def start(args, logfile, errfile):
 def start(args, logfile, errfile):
     try:
     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
         return 0
     except subprocess.CalledProcessError:
     except subprocess.CalledProcessError:
         return 1
         return 1