diff options
Diffstat (limited to 'Library/Homebrew/dev-cmd/update-test.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/update-test.rb | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/Library/Homebrew/dev-cmd/update-test.rb b/Library/Homebrew/dev-cmd/update-test.rb index edf4c542a..621c41526 100644 --- a/Library/Homebrew/dev-cmd/update-test.rb +++ b/Library/Homebrew/dev-cmd/update-test.rb @@ -5,6 +5,8 @@ module Homebrew    #    brew update-test --commit=<sha1> # using <sha1> as start commit    #    brew update-test --before=<date> # using commit at <date> as start commit    # +  # Options: +  #   --keep-tmp      Retain temporary directory containing the new clone    def update_test      cd HOMEBREW_REPOSITORY      start_sha1 = if commit = ARGV.value("commit") @@ -19,7 +21,8 @@ module Homebrew      puts "Start commit: #{start_sha1}"      puts "End   commit: #{end_sha1}" -    mktemp do +    mktemp("update-test") do |staging| +      staging.retain! if ARGV.keep_tmp?        curdir = Pathname.new(Dir.pwd)        oh1 "Setup test environment..." | 
