diff options
| author | Mike McQuaid | 2013-09-14 13:41:40 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-09-14 13:45:44 +0100 |
| commit | 52f4a6cd930d5ef4715d589b286bb8178f4d1028 (patch) | |
| tree | 06e09e1eba625eaa351962ece0da7e95d2828aa1 /Library | |
| parent | 95c2f7bea81cb70cd0c4912cb66c359eb177073d (diff) | |
| download | homebrew-52f4a6cd930d5ef4715d589b286bb8178f4d1028.tar.bz2 | |
brew-test-bot: email subjects contain OS version.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index 8a13862cd..4c7ca09a7 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -17,7 +17,7 @@ require 'utils' require 'date' require 'erb' -EMAIL_SUBJECT_FILE = "brew-test-bot.email.txt" +EMAIL_SUBJECT_FILE = "brew-test-bot.#{MacOS.cat}.email.txt" HOMEBREW_CONTRIBUTED_CMDS = HOMEBREW_REPOSITORY + "Library/Contributions/cmd/" class Step @@ -381,7 +381,7 @@ if ARGV.include? "--email" File.open EMAIL_SUBJECT_FILE, 'w' do |file| # The file should be written at the end but in case we don't get to that # point ensure that we have something valid. - file.write "INTERNAL ERROR" + file.write "#{MacOS.version}: internal error." end end @@ -419,9 +419,9 @@ if ARGV.include? "--email" end if failed_steps.empty? - email_subject = 'PASSED' + email_subject = '' else - email_subject = "#{failed_steps.join ', '}" + email_subject = "#{MacOS.version}: #{failed_steps.join ', '}." end File.open EMAIL_SUBJECT_FILE, 'w' do |file| |
