From 7e4121d3fd1ffdc4e8fd713cea6d4ff34d4b89bd Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 16 Jul 2015 13:40:57 +0300 Subject: Really run "live" command --- obbench | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'obbench') 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): -- cgit v1.2.1