On Saturday, February 15, 2014 02:15:03 AM Ilia Mirkin wrote: > Without the flush, updates only happen whenever the buffer overfills, > which can be tens of tests. > > Signed-off-by: Ilia Mirkin <[email protected]> > --- > framework/log.py | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/framework/log.py b/framework/log.py > index dcbe345..01c3a32 100644 > --- a/framework/log.py > +++ b/framework/log.py > @@ -70,6 +70,9 @@ class Log(object): > > """ > sys.stdout.write("{0} {1} \r".format(self._percent(), > self._running())) + # Need to flush explicitly, otherwise it all > gets buffered without a + # newline. > + sys.stdout.flush() > > @synchronized_self > def get_current(self):
Ah yes, that explains what's missing. Reveiwed-by: Dylan Baker <[email protected]>
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
