Branch: refs/heads/JENKINS-69807
Home: https://github.com/jenkinsci/robot-plugin
Commit: 8b606f6ced2f973f483b15d5919dd1b805c80698
https://github.com/jenkinsci/robot-plugin/commit/8b606f6ced2f973f483b15d5919dd1b805c80698
Author: Tattoo <[email protected]>
Date: 2023-02-27 (Mon, 27 Feb 2023)
Changed paths:
M src/main/java/hudson/plugins/robot/model/RobotTestObject.java
M src/test/java/hudson/plugins/robot/model/RobotResultTest.java
A src/test/resources/hudson/plugins/robot/model/robot4_empty_suite_name.xml
Log Message:
-----------
Fixes JENKINS-69807
In RF4, suite name in output.xml might be non-existent in some cases (see more
below [*]). In these cases, `RobotTestObject.getName()` returned null as well,
which became problem for `RobotTestObject.getRelativePackageName()`.
Handle null from `getName()` as an empty string.
[*] RF uses double underscore ('__') in suite name as a separator as per
https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#test-suite-name-and-documentation
If user has named their suite so it ends with double undercore (eg.
suite__.robot), suite name is of course empty. Before RF5, this meant
output.xml's <suite> tag did not get name-attribute at all; hence the null.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/robot-plugin/push/refs/heads/JENKINS-69807/000000-8b606f%40github.com.