diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-07-16 13:40:57 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-07-16 13:40:57 +0300 |
commit | 7e4121d3fd1ffdc4e8fd713cea6d4ff34d4b89bd (patch) | |
tree | 73ea4a3fdfcd2d672680d5c05329bb89643b40ae /obbench | |
parent | 7e125a2883f16a6e7b47d10370db36855da47506 (diff) | |
download | obnam-benchmarks-7e4121d3fd1ffdc4e8fd713cea6d4ff34d4b89bd.tar.gz |
Really run "live" command
Diffstat (limited to 'obbench')
-rwxr-xr-x | obbench | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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): |