From 1bffec73d2b011e9a3939ed01e55ec0c25eca536 Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Wed, 18 Aug 2010 01:43:00 +0000 Subject: Have bin/calibrate.py print the timing run output if it can't find any appropriate "VARIABLE:" lines in the output. --- bin/calibrate.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/calibrate.py b/bin/calibrate.py index f377869..72a6ac7 100644 --- a/bin/calibrate.py +++ b/bin/calibrate.py @@ -64,7 +64,11 @@ def main(argv=None): output = p.communicate()[0] vm = variable_re.search(output) em = elapsed_re.search(output) - elapsed = float(em.group(1)) + try: + elapsed = float(em.group(1)) + except AttributeError: + print output + raise print "run %3d: %7.3f: %s" % (run, elapsed, ' '.join(vm.groups())) if opts.min < elapsed and elapsed < opts.max: good += 1 -- cgit v0.12