aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-12-18 09:39:58 +0000
committerMike McQuaid2013-12-18 09:39:58 +0000
commitd03100c615891de46ede9f7088b48375ca1d70aa (patch)
tree554ceffce1ccbad9e066987dd4bb7155d65dbd95 /Library
parent8a2464bf25592fea926f7bf77611dd4d5c8759f9 (diff)
downloadbrew-d03100c615891de46ede9f7088b48375ca1d70aa.tar.bz2
brew-test-bot: regex to delete invalid XML chars.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index 48a897cef..6a38c98a3 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