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"
|
xml_erb = HOMEBREW_CONTRIBUTED_CMDS + "brew-test-bot.xml.erb"
|
||||||
erb = ERB.new IO.read xml_erb
|
erb = ERB.new IO.read xml_erb
|
||||||
open("brew-test-bot.xml", "w") do |xml|
|
open("brew-test-bot.xml", "w") do |xml|
|
||||||
# Remove empty lines from ERB result.
|
# Remove empty lines and null characters from ERB result.
|
||||||
xml.write erb.result(binding).gsub /^\s*$\n/, ''
|
xml.write erb.result(binding).gsub(/^\s*$\n|\000/, '')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -14,4 +14,4 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
<% end %>
|
<% end %>
|
||||||
<testsuites>
|
</testsuites>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user