@@ -123,9 +123,7 @@ def run(arglist):
123123 os .system (' ' .join (arglist ))
124124
125125def drive (backend , python = ['python' ], switches = []):
126-
127126 exclude = failbackend .get (backend , [])
128- switchstring = ' ' .join (switches )
129127 # Strip off the format specifier, if any.
130128 if backend .startswith ('cairo' ):
131129 _backend = 'cairo'
@@ -136,7 +134,7 @@ def drive(backend, python=['python'], switches = []):
136134 print '\t Skipping %s, known to fail on backend: %s' % backend
137135 continue
138136
139- print '\t driving %s %s ' % (fname , switchstring )
137+ print ( '\t driving %-40s ' % (fname )),
140138 basename , ext = os .path .splitext (fname )
141139 outfile = basename + '_%s' % backend
142140 tmpfile_name = '_tmp_%s.py' % basename
@@ -169,7 +167,10 @@ def drive(backend, python=['python'], switches = []):
169167 tmpfile .write ('savefig("%s", dpi=150)' % outfile )
170168
171169 tmpfile .close ()
170+ start_time = time .time ()
172171 run (python + [tmpfile_name , switchstring ])
172+ end_time = time .time ()
173+ print (end_time - start_time )
173174 #os.system('%s %s %s' % (python, tmpfile_name, switchstring))
174175 os .remove (tmpfile_name )
175176
@@ -193,7 +194,8 @@ def drive(backend, python=['python'], switches = []):
193194 if not backends :
194195 backends = default_backends
195196 for backend in backends :
196- print 'testing %s' % backend
197+ switchstring = ' ' .join (switches )
198+ print 'testing %s %s' % (backend , switchstring )
197199 t0 = time .time ()
198200 drive (backend , python , switches )
199201 t1 = time .time ()
0 commit comments