Add plugin="junit" attribute for JUnit plugin

Change-Id: If7191cac2ac6db83e24993f7f65896b89745a878
Signed-off-by: Kien Ha <kienha9922@gmail.com>
This commit is contained in:
Kien Ha 2016-06-21 12:23:20 -04:00
parent fda76531d9
commit 1eec43ff9f
3 changed files with 3 additions and 2 deletions

View File

@ -1071,6 +1071,7 @@ def junit(parser, xml_parent, data):
"""
junitresult = XML.SubElement(xml_parent,
'hudson.tasks.junit.JUnitResultArchiver')
junitresult.set('plugin', 'junit')
XML.SubElement(junitresult, 'testResults').text = data['results']
XML.SubElement(junitresult, 'keepLongStdio').text = str(
data.get('keep-long-stdio', True)).lower()

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<publishers>
<hudson.tasks.junit.JUnitResultArchiver>
<hudson.tasks.junit.JUnitResultArchiver plugin="junit">
<testResults>nosetests.xml</testResults>
<keepLongStdio>true</keepLongStdio>
<healthScaleFactor>1.0</healthScaleFactor>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<publishers>
<hudson.tasks.junit.JUnitResultArchiver>
<hudson.tasks.junit.JUnitResultArchiver plugin="junit">
<testResults>nosetests-example.xml</testResults>
<keepLongStdio>false</keepLongStdio>
<healthScaleFactor>2.0</healthScaleFactor>