Skip to content
Snippets Groups Projects
Commit 254b2b9d authored by Mike McQuaid's avatar Mike McQuaid
Browse files

brew-test-bot: move command shortening to method.

parent 9497d2f7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment