summaryrefslogtreecommitdiff
path: root/obbench
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-07-16 13:40:57 +0300
committerLars Wirzenius <liw@liw.fi>2015-07-16 13:40:57 +0300
commit7e4121d3fd1ffdc4e8fd713cea6d4ff34d4b89bd (patch)
tree73ea4a3fdfcd2d672680d5c05329bb89643b40ae /obbench
parent7e125a2883f16a6e7b47d10370db36855da47506 (diff)
downloadobnam-benchmarks-7e4121d3fd1ffdc4e8fd713cea6d4ff34d4b89bd.tar.gz
Really run "live" command
Diffstat (limited to 'obbench')
-rwxr-xr-xobbench7
1 files changed, 6 insertions, 1 deletions
diff --git a/obbench b/obbench
index 20761a7..9505003 100755
--- a/obbench
+++ b/obbench
@@ -20,6 +20,7 @@
import os
import shutil
import tempfile
+import time
import cliapp
import yaml
@@ -65,7 +66,11 @@ class ObnamBenchmarker(cliapp.Application):
def run_benchmark_step(self, step, checkout, result):
step_info = dict(step)
- step_info['duration'] = 0.0
+ if 'live' in step:
+ cliapp.runcmd(['sh', '-euc', step['live']], cwd=checkout)
+ started = time.time()
+ ended = time.time()
+ step_info['duration'] = ended - started
result.add_step(step_info)
def save_result(self, spec, result):