diff options
| author | Mike McQuaid | 2013-12-18 09:39:58 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-12-18 09:39:58 +0000 |
| commit | 42206d05747f686f02ec89201309a8d39683ef52 (patch) | |
| tree | 859247e469ca8c5f1078f095d8b996987440c4f1 /Library | |
| parent | 2b1042220ace9d7780ebf029b2f2482b0e3336d5 (diff) | |
| download | homebrew-42206d05747f686f02ec89201309a8d39683ef52.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 |
