brew-test-bot: remove escape characters.

This commit is contained in:
Mike McQuaid 2013-10-09 09:04:31 +01:00
parent 9bd507b7be
commit 88e5c4c333

View File

@ -411,8 +411,8 @@ if ARGV.include? "--junit"
testcase.attributes['time'] = step.time
failure = testcase.add_element 'failure' if step.failed?
if step.has_output?
# Remove null characters from step output.
output = REXML::CData.new step.output.delete("\000")
# Remove invalid XML CData characters from step output.
output = REXML::CData.new step.output.delete("\000\e")
if step.passed?
system_out = testcase.add_element 'system-out'
system_out.text = output