testsuite/junit: Flip type and message
authorBen Gamari <ben@smart-cactus.org>
Mon, 31 Jul 2017 12:44:40 +0000 (08:44 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 18 Aug 2017 03:49:51 +0000 (23:49 -0400)
type apparently can't contain < characters.

testsuite/driver/junit.py

index 01a5f47..f9689de 100644 (file)
@@ -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',