Color the setup ERROR red
This commit is contained in:
parent
3eaa6d8835
commit
664257c7a3
|
@ -786,8 +786,7 @@ class TerminalReporter(object):
|
||||||
self.write_line(line)
|
self.write_line(line)
|
||||||
else:
|
else:
|
||||||
msg = self._getfailureheadline(rep)
|
msg = self._getfailureheadline(rep)
|
||||||
markup = {"red": True, "bold": True}
|
self.write_sep("_", msg, red=True, bold=True)
|
||||||
self.write_sep("_", msg, **markup)
|
|
||||||
self._outrep_summary(rep)
|
self._outrep_summary(rep)
|
||||||
for report in self.getreports(""):
|
for report in self.getreports(""):
|
||||||
if report.nodeid == rep.nodeid and report.when == "teardown":
|
if report.nodeid == rep.nodeid and report.when == "teardown":
|
||||||
|
@ -808,7 +807,7 @@ class TerminalReporter(object):
|
||||||
msg = "ERROR at setup of " + msg
|
msg = "ERROR at setup of " + msg
|
||||||
elif rep.when == "teardown":
|
elif rep.when == "teardown":
|
||||||
msg = "ERROR at teardown of " + msg
|
msg = "ERROR at teardown of " + msg
|
||||||
self.write_sep("_", msg)
|
self.write_sep("_", msg, red=True, bold=True)
|
||||||
self._outrep_summary(rep)
|
self._outrep_summary(rep)
|
||||||
|
|
||||||
def _outrep_summary(self, rep):
|
def _outrep_summary(self, rep):
|
||||||
|
|
Loading…
Reference in New Issue