From c48e11be7a26d3a37b716f3c7665a4bbb9c81957 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 10 Jan 2019 11:45:32 -0500 Subject: testsuite: Show both test name and way in JUnit output --- testsuite/driver/junit.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/testsuite/driver/junit.py b/testsuite/driver/junit.py index f2dbebb96a..f5daec1e47 100644 --- a/testsuite/driver/junit.py +++ b/testsuite/driver/junit.py @@ -15,24 +15,24 @@ def junit(t): ('unexpected failure', t.unexpected_failures)]: for (directory, testname, reason, way) in group: testcase = ET.SubElement(testsuite, 'testcase', - classname = testname, - name = way) + classname = way, + name = '%s(%s)' % (testname, way)) result = ET.SubElement(testcase, 'failure', type = res_type, message = reason) for (directory, testname, reason, way) in t.framework_failures: testcase = ET.SubElement(testsuite, 'testcase', - classname = testname, - name = way) + classname = way, + name = '%s(%s)' % (testname, way)) result = ET.SubElement(testcase, 'error', type = "framework failure", message = reason) for (directory, testname, way) in t.expected_passes: testcase = ET.SubElement(testsuite, 'testcase', - classname = testname, - name = way) + classname = way, + name = '%s(%s)' % (testname, way)) return ET.ElementTree(testsuites) -- cgit v1.2.1