diff options
| author | Mike McQuaid | 2013-12-18 09:39:58 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-12-18 09:39:58 +0000 |
| commit | d03100c615891de46ede9f7088b48375ca1d70aa (patch) | |
| tree | 554ceffce1ccbad9e066987dd4bb7155d65dbd95 /Library | |
| parent | 8a2464bf25592fea926f7bf77611dd4d5c8759f9 (diff) | |
| download | brew-d03100c615891de46ede9f7088b48375ca1d70aa.tar.bz2 | |
brew-test-bot: regex to delete invalid XML chars.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 2 |
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 |
