[reporters/terminal] Remove handbrake (time.sleep), don't show the unicorn with zero test.
@@ -181,7 +181,8 @@ class TerminalProgress(FontbakeryReporter):
if self._print_progress:
print(self.draw_progressbar().encode('utf-8'))
print()
- if self._unicorn and self._counter[ERROR.name] + self._counter[FAIL.name] == 0:
+ if self._unicorn and len(self._order) \
+ and self._counter[ERROR.name] + self._counter[FAIL.name] == 0:
unicorn = UNICORN
if self._use_color:
unicorn = MAGENTA_STR(UNICORN)
@@ -242,9 +243,6 @@ class TerminalProgress(FontbakeryReporter):
self.stdout.write(rendered)
self.stdout.flush()
- import time
- time.sleep(.05)
-
def _render_results_counter(counter,color=False):
format = ' {}: {}'.format
result = []
