From d03100c615891de46ede9f7088b48375ca1d70aa Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 18 Dec 2013 09:39:58 +0000 Subject: [PATCH] brew-test-bot: regex to delete invalid XML chars. --- Library/Contributions/cmd/brew-test-bot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index 48a897cef8..6a38c98a38 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -473,7 +473,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\00c\e") + output = REXML::CData.new step.output.gsub(/\000\00c\e/, '') if step.passed? system_out = testcase.add_element 'system-out' system_out.text = output