зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1286711 - Warn the user when no tests have run, before the TypeError. r=sstangl, a=KWierso
This commit is contained in:
Родитель
ddadb5f80b
Коммит
071a03c90c
|
@ -82,6 +82,10 @@ class ProgressBar(object):
|
|||
self.update(*self.prior)
|
||||
|
||||
def finish(self, complete=True):
|
||||
if not self.prior:
|
||||
sys.stdout.write('No test run... You can try adding'
|
||||
' --run-slow-tests or --run-skipped to run more tests\n')
|
||||
return
|
||||
final_count = self.limit if complete else self.prior[0]
|
||||
self.update(final_count, self.prior[1])
|
||||
sys.stdout.write('\n')
|
||||
|
|
Загрузка…
Ссылка в новой задаче