brew-test-bot: more JUnit fixes.

This commit is contained in:
Mike McQuaid 2013-05-26 00:18:55 +01:00
parent 8407ad2356
commit ca39bbfd52
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -14,4 +14,4 @@
<% end %>
</testsuite>
<% end %>
<testsuites>
</testsuites>