aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-06-27 00:24:16 +0100
committerMike McQuaid2013-06-27 00:25:24 +0100
commit9c0dae1350b466f1e95a4f11b7cdc590d1ff364b (patch)
treefdb1832033d706a98f86cfdab079f37b5f82a776 /Library
parent2db090fd4acfa08045646fc39e3ad6e7e7c4540b (diff)
downloadhomebrew-9c0dae1350b466f1e95a4f11b7cdc590d1ff364b.tar.bz2
brew-test-bot: always write something to email file.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index f9fadd6e5..b58695a7e 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -14,6 +14,7 @@ require 'utils'
require 'date'
require 'erb'
+EMAIL_SUBJECT_FILE = "brew-test-bot.email.txt"
HOMEBREW_CONTRIBUTED_CMDS = HOMEBREW_REPOSITORY + "Library/Contributions/cmd/"
class Step
@@ -353,6 +354,12 @@ if Pathname.pwd == HOMEBREW_PREFIX and ARGV.include? "--cleanup"
odie 'cannot use --cleanup from HOMEBREW_PREFIX as it will delete all output.'
end
+if ARGV.include? "--email"
+ File.open EMAIL_SUBJECT_FILE, 'w' do |file|
+ file.write "FAILED"
+ end
+end
+
tests = []
any_errors = false
if ARGV.named.empty?
@@ -392,7 +399,7 @@ if ARGV.include? "--email"
email_subject = "#{failed_steps.join ', '}"
end
- File.open "brew-test-bot.email.txt", 'w' do |file|
+ File.open EMAIL_SUBJECT_FILE, 'w' do |file|
file.write email_subject
end
end