aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-05-26 00:18:55 +0100
committerMike McQuaid2013-05-26 00:19:07 +0100
commit7166372145b428df2ab17d246c980de4f291f513 (patch)
treedbe7fb5dddcb510ea3b76c8c612afb8f4962d16c /Library
parentb1e2f005faf780e645bddf8ddb8fabab42175bc0 (diff)
downloadhomebrew-7166372145b428df2ab17d246c980de4f291f513.tar.bz2
brew-test-bot: more JUnit fixes.
Diffstat (limited to 'Library')
-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>