Commits

Anonymous committed b636fba

Have bin/calibrate.py print the timing run output if it can't find
any appropriate "VARIABLE:" lines in the output.

  • Participants
  • Parent commits 4863b48

Comments (0)

Files changed (1)

File bin/calibrate.py

             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