diff options
| author | Andrew Janke | 2016-04-10 22:53:56 -0400 |
|---|---|---|
| committer | Andrew Janke | 2016-04-18 12:23:08 -0400 |
| commit | acc9a7ca8554bc2413dee2d6d0f407b3a59c628c (patch) | |
| tree | 4fb68e17149a73d9d123d9538e2d5fdccdd0ffd9 /Library/Homebrew/dev-cmd/update-test.rb | |
| parent | 0e8140b012181413438002b65290c84284721694 (diff) | |
| download | brew-acc9a7ca8554bc2413dee2d6d0f407b3a59c628c.tar.bz2 | |
brew test, install, update-test: add --keep-tmp option
Also enables sandbox for --interactive and --debug use of install
and test, using automatic retention.
Closes #66.
Signed-off-by: Andrew Janke <andrew@apjanke.net>
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..." |
