aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/cmd
diff options
context:
space:
mode:
authorMike McQuaid2013-06-29 01:31:19 +0100
committerMike McQuaid2013-06-29 01:37:51 +0100
commitff0ebff0f118bd5c60c69640ae5cb2a03253022f (patch)
tree614d74ade45acfcfb005e337495eb937ad994cc5 /Library/Contributions/cmd
parentceae497b52a77d16cbc19228a7e0d1578dc6beb5 (diff)
downloadhomebrew-ff0ebff0f118bd5c60c69640ae5cb2a03253022f.tar.bz2
brew-test-bot: move command shortening to method.
Diffstat (limited to 'Library/Contributions/cmd')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index 3cd14e134..6fd9ae5ef 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -49,6 +49,10 @@ class Step
@status.to_s.upcase
end
+ def command_short
+ @command.gsub(/(brew|--verbose|--build-bottle) /, '')
+ end
+
def passed?
@status == :passed
end
@@ -389,7 +393,7 @@ if ARGV.include? "--email"
tests.each do |test|
test.steps.each do |step|
next unless step.failed?
- failed_steps << step.command.gsub(/(brew|--verbose) /, '')
+ failed_steps << step.command_short
end
end