brew-test-bot: move command shortening to method.
This commit is contained in:
parent
9497d2f741
commit
254b2b9daf
@ -49,6 +49,10 @@ class Step
|
|||||||
@status.to_s.upcase
|
@status.to_s.upcase
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def command_short
|
||||||
|
@command.gsub(/(brew|--verbose|--build-bottle) /, '')
|
||||||
|
end
|
||||||
|
|
||||||
def passed?
|
def passed?
|
||||||
@status == :passed
|
@status == :passed
|
||||||
end
|
end
|
||||||
@ -389,7 +393,7 @@ if ARGV.include? "--email"
|
|||||||
tests.each do |test|
|
tests.each do |test|
|
||||||
test.steps.each do |step|
|
test.steps.each do |step|
|
||||||
next unless step.failed?
|
next unless step.failed?
|
||||||
failed_steps << step.command.gsub(/(brew|--verbose) /, '')
|
failed_steps << step.command_short
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user