diff options
| author | Mike McQuaid | 2013-06-29 01:31:43 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-06-29 01:37:51 +0100 |
| commit | edbc0fadd13ccfe4c4791cc6077d93ea58930ff7 (patch) | |
| tree | b66bbe52ae97401193555f94480871b5c48fc9cd /Library/Contributions | |
| parent | 254b2b9daf9392301aa0cfccd62615e869e1850b (diff) | |
| download | brew-edbc0fadd13ccfe4c4791cc6077d93ea58930ff7.tar.bz2 | |
brew-test-bot: improve JUnit output for Jenkins.
Diffstat (limited to 'Library/Contributions')
| -rw-r--r-- | Library/Contributions/cmd/brew-test-bot.xml.erb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.xml.erb b/Library/Contributions/cmd/brew-test-bot.xml.erb index a835740f3..f5fb4079b 100644 --- a/Library/Contributions/cmd/brew-test-bot.xml.erb +++ b/Library/Contributions/cmd/brew-test-bot.xml.erb @@ -3,11 +3,14 @@ <% tests.each do |test| %> <testsuite name="brew-test-bot.<%= test.name %>" tests="<%= test.steps.count %>"> <% test.steps.each do |step| %> - <testcase name="<%= step.command %>" status="<%= step.status %>" time="<%= step.time %>"> + <testcase name="<%= step.command_short %>" status="<%= step.status %>" time="<%= step.time %>"> <% if step.has_output? %> + <% if step.failed? %> + <failure message="<%= step.status %>: <%= step.command %>"><![CDATA[<%= step.output %>]]></failure> + <% else %> <system-out><![CDATA[<%= step.output %>]]></system-out> <% end %> - <% if step.failed? %> + <% elsif step.failed? %> <failure /> <% end %> </testcase> |
