[commit: ghc] wip/wildcards-warn: testsuite: Report unexpected passes in junit output (180c976)

git at git.haskell.org git at git.haskell.org
Tue Feb 12 07:01:02 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/wildcards-warn
Link       : http://ghc.haskell.org/trac/ghc/changeset/180c9762d4565f0e8b192abf95d2bed57765e0c5/ghc

>---------------------------------------------------------------

commit 180c9762d4565f0e8b192abf95d2bed57765e0c5
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date:   Sun Feb 10 21:59:38 2019 +0000

    testsuite: Report unexpected passes in junit output


>---------------------------------------------------------------

180c9762d4565f0e8b192abf95d2bed57765e0c5
 testsuite/driver/junit.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/testsuite/driver/junit.py b/testsuite/driver/junit.py
index ec84018..d376a06 100644
--- a/testsuite/driver/junit.py
+++ b/testsuite/driver/junit.py
@@ -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,



More information about the ghc-commits mailing list