[commit: ghc] wip/jenkins: testsuite/junit: Flip type and message (8eb408b)

git at git.haskell.org git at git.haskell.org
Wed Aug 16 23:02:56 UTC 2017


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

On branch  : wip/jenkins
Link       : http://ghc.haskell.org/trac/ghc/changeset/8eb408b954f48c2f37434f7405361a00d9e959b2/ghc

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

commit 8eb408b954f48c2f37434f7405361a00d9e959b2
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Jul 31 08:44:40 2017 -0400

    testsuite/junit: Flip type and message
    
    type apparently can't contain < characters.


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

8eb408b954f48c2f37434f7405361a00d9e959b2
 testsuite/driver/junit.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuite/driver/junit.py b/testsuite/driver/junit.py
index 01a5f47..f9689de 100644
--- a/testsuite/driver/junit.py
+++ b/testsuite/driver/junit.py
@@ -18,8 +18,8 @@ def junit(t):
                                      classname = testname,
                                      name = way)
             result = ET.SubElement(testcase, 'failure',
-                                   type = result,
-                                   message = reason)
+                                   type = reason,
+                                   message = result)
 
     for (directory, testname, reason, way) in t.framework_failures:
         testcase = ET.SubElement(testsuite, 'testcase',



More information about the ghc-commits mailing list