brew-test-bot: strip bell/alert character.

This commit is contained in:
Mike McQuaid 2014-06-04 16:21:20 +01:00
parent 12b5de391e
commit eebef9b2d4

View File

@ -522,7 +522,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.delete("\000\b\e\f")
output = REXML::CData.new step.output.delete("\000\a\b\e\f")
if step.passed?
system_out = testcase.add_element 'system-out'
system_out.text = output