summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-08-18 01:43:00 +0000
committerSteven Knight <knight@baldmt.com>2010-08-18 01:43:00 +0000
commit9d4db6cce45b2c49002a9c18d3e8eaaa36afd811 (patch)
treedfa93c835a8af524527773500bf703c2a8fa3c85
parent2588259f8c2d8e389a30e27b6f1368876670d937 (diff)
downloadscons-9d4db6cce45b2c49002a9c18d3e8eaaa36afd811.tar.gz
Have bin/calibrate.py print the timing run output if it can't find
any appropriate "VARIABLE:" lines in the output.
-rw-r--r--bin/calibrate.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/calibrate.py b/bin/calibrate.py
index f377869e..72a6ac79 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