|
@@ -2,7 +2,7 @@ import subprocess
|
|
import os
|
|
import os
|
|
|
|
|
|
def start(args, logfile, errfile):
|
|
def start(args, logfile, errfile):
|
|
- subprocess.check_call("urweb bench", shell=True, cwd="UrWeb", stderr=errfile, stdout=logfile)
|
|
|
|
|
|
+ subprocess.check_call("urweb bench", shell=True, cwd="urweb", stderr=errfile, stdout=logfile)
|
|
|
|
|
|
threads = str(args.max_threads)
|
|
threads = str(args.max_threads)
|
|
conn_string = ('dbname=hello_world '
|
|
conn_string = ('dbname=hello_world '
|
|
@@ -11,7 +11,7 @@ def start(args, logfile, errfile):
|
|
'host=' + args.database_host)
|
|
'host=' + args.database_host)
|
|
env = {'URWEB_PQ_CON': conn_string}
|
|
env = {'URWEB_PQ_CON': conn_string}
|
|
subprocess.Popen("./bench.exe -q -k -t " + threads,
|
|
subprocess.Popen("./bench.exe -q -k -t " + threads,
|
|
- env=env, shell=True, cwd="UrWeb", stderr=errfile, stdout=logfile)
|
|
|
|
|
|
+ env=env, shell=True, cwd="urweb", stderr=errfile, stdout=logfile)
|
|
return 0
|
|
return 0
|
|
|
|
|
|
def stop(logfile, errfile):
|
|
def stop(logfile, errfile):
|