From c81346ba51d6ff1fb892c89dbbc8bfe380030224 Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Fri, 14 Oct 2016 17:20:14 +0200 Subject: [PATCH] qubes/test/run: Print tracebacks of expected fails fixes QubesOS/qubes-issues#2376 --- qubes/tests/run.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qubes/tests/run.py b/qubes/tests/run.py index 4b6cd81e..4c3d3625 100755 --- a/qubes/tests/run.py +++ b/qubes/tests/run.py @@ -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: