brew-test-bot: remove form feed properly.

This commit is contained in:
Mike McQuaid 2013-12-20 15:22:00 +00:00
parent f853ec7365
commit 4401ee0819

View File

@ -474,7 +474,7 @@ if ARGV.include? "--junit"
failure = testcase.add_element 'failure' if step.failed?
if step.has_output?
# Remove invalid XML CData characters from step output.
output = REXML::CData.new step.output.gsub(/\000\00c\e/, '')
output = REXML::CData.new step.output.delete(/\000\f\e/)
if step.passed?
system_out = testcase.add_element 'system-out'
system_out.text = output