testsuite: Report unexpected passes in junit output
authorMatthew Pickering <matthewtpickering@gmail.com>
Sun, 10 Feb 2019 21:59:38 +0000 (21:59 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Mon, 11 Feb 2019 13:25:37 +0000 (08:25 -0500)
testsuite/driver/junit.py

index ec84018..d376a06 100644 (file)
@@ -7,12 +7,15 @@ def junit(t):
                               id = "0",
                               package = 'ghc',
                               tests = str(t.total_tests),
-                              failures = str(len(t.unexpected_failures) + len(t.unexpected_stat_failures)),
+                              failures = str(len(t.unexpected_failures)
+                                             + len(t.unexpected_stat_failures)
+                                             + len(t.unexpected_passes)),
                               errors = str(len(t.framework_failures)),
                               timestamp = datetime.now().isoformat())
 
     for res_type, group in [('stat failure', t.unexpected_stat_failures),
-                          ('unexpected failure', t.unexpected_failures)]:
+                            ('unexpected failure', t.unexpected_failures),
+                            ('unexpected_passes', t.unexpected_passes)]:
         for tr in group:
             testcase = ET.SubElement(testsuite, 'testcase',
                                      classname = tr.way,