
Python 3.13 has changed the behaviour of the `xml.dom.minidom` module:
double quotes used to be escaped everywhere, but they are now only
escaped inside attributes.
This was done by the following commit.
154477be72
As a result, the unit tests fail when executed on Python 3.13.
Fix this issue in the following way:
1. In all 88 reference-output XML files, replace all occurrences of
`"` with `"`.
2. Change `tests/conftest.py` to force-replace all occurrences of
`"` with `"` in the test output before comparing it to the
reference output. This ensures that the subsequent equality assertion
still holds on older versions of Python.
This solution works because the test data does not contain any instances
of `"` inside XML attributes.
Change-Id: Ied875014b1bb5d8225943303858658648efc12ad
107 lines
4.0 KiB
XML
107 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<publishers>
|
|
<org.jenkinsci.plugins.postbuildscript.PostBuildScript>
|
|
<config>
|
|
<markBuildUnstable>true</markBuildUnstable>
|
|
<scriptFiles>
|
|
<org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<results>
|
|
<string>SUCCESS</string>
|
|
<string>UNSTABLE</string>
|
|
</results>
|
|
<role>MASTER</role>
|
|
<filePath>/fakepath/generic</filePath>
|
|
<scriptType>GENERIC</scriptType>
|
|
</org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<results>
|
|
<string>NOT_BUILT</string>
|
|
<string>ABORTED</string>
|
|
<string>FAILURE</string>
|
|
</results>
|
|
<executeOn>MATRIX</executeOn>
|
|
<role>SLAVE</role>
|
|
<filePath>/fakepath/generic-two</filePath>
|
|
<scriptType>GENERIC</scriptType>
|
|
</org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<results>
|
|
<string>SUCCESS</string>
|
|
<string>UNSTABLE</string>
|
|
</results>
|
|
<executeOn>AXES</executeOn>
|
|
<role>MASTER</role>
|
|
<filePath>/fakepath/groovy</filePath>
|
|
<scriptType>GROOVY</scriptType>
|
|
</org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<results>
|
|
<string>NOT_BUILT</string>
|
|
<string>ABORTED</string>
|
|
<string>FAILURE</string>
|
|
</results>
|
|
<role>SLAVE</role>
|
|
<filePath>/fakepath/groovy-too</filePath>
|
|
<scriptType>GROOVY</scriptType>
|
|
</org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
</scriptFiles>
|
|
<groovyScripts>
|
|
<org.jenkinsci.plugins.postbuildscript.model.Script>
|
|
<results>
|
|
<string>SUCCESS</string>
|
|
<string>UNSTABLE</string>
|
|
</results>
|
|
<executeOn>MATRIX</executeOn>
|
|
<role>MASTER</role>
|
|
<content>println "Hello world!"</content>
|
|
</org.jenkinsci.plugins.postbuildscript.model.Script>
|
|
<org.jenkinsci.plugins.postbuildscript.model.Script>
|
|
<results>
|
|
<string>NOT_BUILT</string>
|
|
<string>ABORTED</string>
|
|
<string>FAILURE</string>
|
|
</results>
|
|
<role>SLAVE</role>
|
|
<content>println "Hello world!"
|
|
println "Multi-line script"
|
|
</content>
|
|
</org.jenkinsci.plugins.postbuildscript.model.Script>
|
|
</groovyScripts>
|
|
<buildSteps>
|
|
<org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
|
|
<results>
|
|
<string>SUCCESS</string>
|
|
<string>UNSTABLE</string>
|
|
</results>
|
|
<executeOn>AXES</executeOn>
|
|
<role>MASTER</role>
|
|
<buildSteps>
|
|
<hudson.tasks.Shell>
|
|
<command>echo "Hello world!"</command>
|
|
</hudson.tasks.Shell>
|
|
</buildSteps>
|
|
</org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
|
|
<org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
|
|
<results>
|
|
<string>NOT_BUILT</string>
|
|
<string>ABORTED</string>
|
|
<string>FAILURE</string>
|
|
</results>
|
|
<executeOn>BOTH</executeOn>
|
|
<role>SLAVE</role>
|
|
<buildSteps>
|
|
<hudson.tasks.Shell>
|
|
<command>echo "Hello world!"</command>
|
|
</hudson.tasks.Shell>
|
|
<hudson.tasks.Shell>
|
|
<command>echo "Goodbye world!"</command>
|
|
</hudson.tasks.Shell>
|
|
</buildSteps>
|
|
</org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
|
|
</buildSteps>
|
|
</config>
|
|
</org.jenkinsci.plugins.postbuildscript.PostBuildScript>
|
|
</publishers>
|
|
</project>
|