aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/cmd
diff options
context:
space:
mode:
authorMike McQuaid2013-05-26 00:18:55 +0100
committerMike McQuaid2013-05-26 00:19:07 +0100
commitca39bbfd5266e6517d6fccc7db3f1c1345b1664d (patch)
treeca6782b72eea6005c520cfc9618926777d89415e /Library/Contributions/cmd
parent8407ad23561882b879febbf4870efa7ccca36fd7 (diff)
downloadbrew-ca39bbfd5266e6517d6fccc7db3f1c1345b1664d.tar.bz2
brew-test-bot: more JUnit fixes.
Diffstat (limited to 'Library/Contributions/cmd')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb4
-rw-r--r--Library/Contributions/cmd/brew-test-bot.xml.erb2
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>