Skip to content

Commit

Permalink
Error message needs to be inside its own XML tag according to XSD
Browse files Browse the repository at this point in the history
  • Loading branch information
j-rivero committed May 27, 2020
1 parent b1d0eae commit a1173ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ament_cmake_test/ament_cmake_test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ def _generate_result(result_file, *, failure_message=None, skip=False, error_mes
# by any of the Jenkins test result report publishers
pkgname = os.path.basename(os.path.dirname(result_file))
testname = os.path.splitext(os.path.basename(result_file))[0]
error_message = '<error message=%s/>' % quoteattr(error_message) \
if error_message else ''
failure_message = '<failure message=%s/>' % quoteattr(failure_message) \
if failure_message else ''
skipped_message = \
Expand Down

0 comments on commit a1173ac

Please sign in to comment.