qubes/test/run: Print tracebacks of expected fails

fixes QubesOS/qubes-issues#2376
This commit is contained in:
Wojtek Porczyk 2016-10-14 17:20:14 +02:00
parent 526f2c3751
commit c81346ba51

View File

@ -207,8 +207,13 @@ class QubesTestResult(unittest.TestResult):
color=self.color),
self.errors)
self.printErrorList(
'{color[red]}FAIL{color[normal]}'.format(color=self.color),
'{color[red]}FAIL{color[normal]}'.format(
color=self.color),
self.failures)
self.printErrorList(
'{color[yellow]}EXPECTED{color[normal]}'.format(
color=self.color),
self.expectedFailures)
def printErrorList(self, flavour, errors): # pylint: disable=invalid-name
for test, err in errors: