aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-11-25 13:03:13 +0000
committerMike McQuaid2012-11-25 21:03:57 +0000
commit0d19e2be9e0c71c2bafe6994ae6d11c9510616aa (patch)
tree5633fb66502c4721528dfdf10eb753fbe85d735d /Library
parent4c1b546d997a4d240069791b1653c0ac2d8850c5 (diff)
downloadbrew-0d19e2be9e0c71c2bafe6994ae6d11c9510616aa.tar.bz2
brew-test-bot: don't cleanup HOMEBREW_PREFIX.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmds/brew-test-bot.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Contributions/cmds/brew-test-bot.rb b/Library/Contributions/cmds/brew-test-bot.rb
index 046c1ede4..6d044970f 100755
--- a/Library/Contributions/cmds/brew-test-bot.rb
+++ b/Library/Contributions/cmds/brew-test-bot.rb
@@ -305,6 +305,10 @@ class Test
end
end
+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.named.empty?
# With no arguments just build the most recent commit.
Test.run 'HEAD'