aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-07-17 22:08:57 -0700
committerMike McQuaid2013-07-18 09:56:55 -0700
commit77a7b7d6e09011d54e4e3697bfd82e2349006bb6 (patch)
tree22000db701c82738e66430bba7daeb5088426161 /Library
parent999d828399b76c568638626bc1e4da138aa4df19 (diff)
downloadhomebrew-77a7b7d6e09011d54e4e3697bfd82e2349006bb6.tar.bz2
brew-test-bot: only install bottle if created OK.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb8
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 5ef11db69..070955c8b 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -268,18 +268,18 @@ class Test
test "brew audit #{formula}"
return unless install_passed
test "brew bottle #{formula}", :puts_output_on_success => true
- bottle_revision = bottle_new_revision(formula_object)
- bottle_filename = bottle_filename(formula_object, bottle_revision)
bottle_step = steps.last
if bottle_step.passed? and bottle_step.has_output?
+ bottle_revision = bottle_new_revision(formula_object)
+ bottle_filename = bottle_filename(formula_object, bottle_revision)
bottle_base = bottle_filename.gsub(bottle_suffix(bottle_revision), '')
bottle_output = bottle_step.output.gsub /.*(bottle do.*end)/m, '\1'
File.open "#{bottle_base}.bottle.rb", 'w' do |file|
file.write bottle_output
end
+ test "brew uninstall --force #{formula}"
+ test "brew install #{bottle_filename}"
end
- test "brew uninstall --force #{formula}"
- test "brew install #{bottle_filename}"
test "brew test #{formula}" if formula_object.test_defined?
test "brew uninstall --force #{formula}"
test "brew uninstall --force #{dependencies}" unless dependencies.empty?