summaryrefslogtreecommitdiff
path: root/client/tests/tbench/tbench.py
diff options
context:
space:
mode:
Diffstat (limited to 'client/tests/tbench/tbench.py')
-rwxr-xr-xclient/tests/tbench/tbench.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/tests/tbench/tbench.py b/client/tests/tbench/tbench.py
index bf51b0cd..65a2aa60 100755
--- a/client/tests/tbench/tbench.py
+++ b/client/tests/tbench/tbench.py
@@ -13,7 +13,7 @@ class tbench(test.test):
system('./configure')
system('make')
- def execute(self, iterations = 1, args = '1'):
+ def execute(self, iterations = 1, args = count_cpus()):
# only supports combined server+client model at the moment
# should support separate I suppose, but nobody uses it
profilers = self.job.profilers
@@ -36,7 +36,7 @@ class tbench(test.test):
if pid: # parent
time.sleep(1)
client = self.srcdir + '/client.txt'
- args = '-c ' + client + ' ' + args
+ args = '-c ' + client + ' ' + '%s' % args
system(self.srcdir + '/tbench ' + args)
os.kill(pid, signal.SIGTERM) # clean up the server
else: # child