brew-test-bot: more JUnit fixes.
This commit is contained in:
parent
8407ad2356
commit
ca39bbfd52
@ -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
|
||||
|
||||
|
||||
@ -14,4 +14,4 @@
|
||||
<% end %>
|
||||
</testsuite>
|
||||
<% end %>
|
||||
<testsuites>
|
||||
</testsuites>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user