diff options
| author | Mike McQuaid | 2013-05-26 00:18:55 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-05-26 00:19:07 +0100 |
| commit | ca39bbfd5266e6517d6fccc7db3f1c1345b1664d (patch) | |
| tree | ca6782b72eea6005c520cfc9618926777d89415e /Library/Contributions/cmd | |
| parent | 8407ad23561882b879febbf4870efa7ccca36fd7 (diff) | |
| download | brew-ca39bbfd5266e6517d6fccc7db3f1c1345b1664d.tar.bz2 | |
brew-test-bot: more JUnit fixes.
Diffstat (limited to 'Library/Contributions/cmd')
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 4 | ||||
| -rw-r--r-- | Library/Contributions/cmd/brew-test-bot.xml.erb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index 487ef516a..1029c807e 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -317,8 +317,8 @@ if ARGV.include? "--junit" xml_erb = HOMEBREW_CONTRIBUTED_CMDS + "brew-test-bot.xml.erb" erb = ERB.new IO.read xml_erb open("brew-test-bot.xml", "w") do |xml| - # Remove empty lines from ERB result. - xml.write erb.result(binding).gsub /^\s*$\n/, '' + # Remove empty lines and null characters from ERB result. + xml.write erb.result(binding).gsub(/^\s*$\n|\000/, '') end end diff --git a/Library/Contributions/cmd/brew-test-bot.xml.erb b/Library/Contributions/cmd/brew-test-bot.xml.erb index 4c67242aa..3d528871a 100644 --- a/Library/Contributions/cmd/brew-test-bot.xml.erb +++ b/Library/Contributions/cmd/brew-test-bot.xml.erb @@ -14,4 +14,4 @@ <% end %> </testsuite> <% end %> -<testsuites> +</testsuites> |
