refine reporting a bit, show only "dots" for distributed testing
--HG-- branch : trunk
This commit is contained in:
parent
a60e470573
commit
e2e01a8585
|
@ -155,6 +155,12 @@ class TerminalReporter:
|
||||||
if not letter and not word:
|
if not letter and not word:
|
||||||
# probably passed setup/teardown
|
# probably passed setup/teardown
|
||||||
return
|
return
|
||||||
|
if not self.config.option.verbose:
|
||||||
|
if not hasattr(rep, 'node'):
|
||||||
|
self.write_fspath_result(rep.fspath, letter)
|
||||||
|
else:
|
||||||
|
self._tw.write(letter)
|
||||||
|
else:
|
||||||
if isinstance(word, tuple):
|
if isinstance(word, tuple):
|
||||||
word, markup = word
|
word, markup = word
|
||||||
else:
|
else:
|
||||||
|
@ -164,9 +170,6 @@ class TerminalReporter:
|
||||||
markup = {'red':True}
|
markup = {'red':True}
|
||||||
elif rep.skipped:
|
elif rep.skipped:
|
||||||
markup = {'yellow':True}
|
markup = {'yellow':True}
|
||||||
if not self.config.option.verbose:
|
|
||||||
self.write_fspath_result(rep.fspath, letter)
|
|
||||||
else:
|
|
||||||
line = self._locationline(str(rep.fspath), *rep.location)
|
line = self._locationline(str(rep.fspath), *rep.location)
|
||||||
if not hasattr(rep, 'node'):
|
if not hasattr(rep, 'node'):
|
||||||
self.write_ensure_prefix(line, word, **markup)
|
self.write_ensure_prefix(line, word, **markup)
|
||||||
|
|
Loading…
Reference in New Issue