diff options
| author | Mike McQuaid | 2013-07-15 19:33:03 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2013-07-16 13:29:37 -0700 |
| commit | 36051b6a71e60007e5200fc5e8b3b83eebade8f7 (patch) | |
| tree | d2903b97db7a52ffd47578f66cdd0ad19e666ed5 /Library | |
| parent | 897607b3d7f95f9d6ffe0a0fd79b0fcb34be1742 (diff) | |
| download | brew-36051b6a71e60007e5200fc5e8b3b83eebade8f7.tar.bz2 | |
brew-test-bot: audit after installation.
Enables new post-installation Cellar audit failures.
Closes Homebrew/homebrew#21242.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index e19272d30..4b5deb19c 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -253,15 +253,17 @@ class Test return end - test "brew audit #{formula}" test "brew fetch #{dependencies}" unless dependencies.empty? test "brew fetch --force --build-bottle #{formula}" test "brew uninstall --force #{formula}" if formula_object.installed? test "brew install --verbose --build-bottle #{formula}" - return unless steps.last.passed? - bottle_step = test "brew bottle #{formula}", :puts_output_on_success => true + install_passed = steps.last.passed? + 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_base = bottle_filename.gsub(bottle_suffix(bottle_revision), '') bottle_output = bottle_step.output.gsub /.*(bottle do.*end)/m, '\1' |
