mirror of
https://github.com/Homebrew/brew.git
synced 2026-08-12 22:29:27 +04:00
Fix brew tests tap trust config home
`brew tests` overrode `HOME` but not `HOMEBREW_USER_CONFIG_HOME`, which `bin/brew` had already derived from the real `HOME`. The spec teardown `rm_rf`s `$HOMEBREW_USER_CONFIG_HOME/trust.json`, so every run deleted the user's real `~/.homebrew/trust.json`. Re-point `HOMEBREW_USER_CONFIG_HOME` at the sandboxed `HOME`, matching `test_bot.rb`, and refuse to clean a `trust.json` that is not sandboxed under `HOME` so a runner that forgets fails loudly instead of deleting real user data.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
/Library/Homebrew/prof
|
||||
/Library/Homebrew/test/.gem
|
||||
/Library/Homebrew/test/.cargo/
|
||||
/Library/Homebrew/test/.homebrew/
|
||||
/Library/Homebrew/test/.subversion
|
||||
/Library/Homebrew/test/coverage
|
||||
/Library/Homebrew/test/junit
|
||||
|
||||
Reference in New Issue
Block a user