Add plugin="junit" attribute for JUnit plugin
Change-Id: If7191cac2ac6db83e24993f7f65896b89745a878 Signed-off-by: Kien Ha <kienha9922@gmail.com>
This commit is contained in:
parent
fda76531d9
commit
1eec43ff9f
@ -1071,6 +1071,7 @@ def junit(parser, xml_parent, data):
|
|||||||
"""
|
"""
|
||||||
junitresult = XML.SubElement(xml_parent,
|
junitresult = XML.SubElement(xml_parent,
|
||||||
'hudson.tasks.junit.JUnitResultArchiver')
|
'hudson.tasks.junit.JUnitResultArchiver')
|
||||||
|
junitresult.set('plugin', 'junit')
|
||||||
XML.SubElement(junitresult, 'testResults').text = data['results']
|
XML.SubElement(junitresult, 'testResults').text = data['results']
|
||||||
XML.SubElement(junitresult, 'keepLongStdio').text = str(
|
XML.SubElement(junitresult, 'keepLongStdio').text = str(
|
||||||
data.get('keep-long-stdio', True)).lower()
|
data.get('keep-long-stdio', True)).lower()
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<project>
|
<project>
|
||||||
<publishers>
|
<publishers>
|
||||||
<hudson.tasks.junit.JUnitResultArchiver>
|
<hudson.tasks.junit.JUnitResultArchiver plugin="junit">
|
||||||
<testResults>nosetests.xml</testResults>
|
<testResults>nosetests.xml</testResults>
|
||||||
<keepLongStdio>true</keepLongStdio>
|
<keepLongStdio>true</keepLongStdio>
|
||||||
<healthScaleFactor>1.0</healthScaleFactor>
|
<healthScaleFactor>1.0</healthScaleFactor>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<project>
|
<project>
|
||||||
<publishers>
|
<publishers>
|
||||||
<hudson.tasks.junit.JUnitResultArchiver>
|
<hudson.tasks.junit.JUnitResultArchiver plugin="junit">
|
||||||
<testResults>nosetests-example.xml</testResults>
|
<testResults>nosetests-example.xml</testResults>
|
||||||
<keepLongStdio>false</keepLongStdio>
|
<keepLongStdio>false</keepLongStdio>
|
||||||
<healthScaleFactor>2.0</healthScaleFactor>
|
<healthScaleFactor>2.0</healthScaleFactor>
|
||||||
|
Loading…
Reference in New Issue
Block a user