brew-test-bot: don't cleanup HOMEBREW_PREFIX.

This commit is contained in:
Mike McQuaid 2012-11-25 13:03:13 +00:00
parent 4c1b546d99
commit 0d19e2be9e

View File

@ -305,6 +305,10 @@ class Test
end end
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? if ARGV.named.empty?
# With no arguments just build the most recent commit. # With no arguments just build the most recent commit.
Test.run 'HEAD' Test.run 'HEAD'