Skip to content

Commit

Permalink
Merge pull request #18413 from Homebrew/more-random-temp-dir
Browse files Browse the repository at this point in the history
tests: add an extra byte of randomness
  • Loading branch information
MikeMcQuaid authored Sep 25, 2024
2 parents 80ebf59 + e03a9fd commit 2f2ca82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/test/support/lib/startup/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Use a shorter HOMEBREW_TEMP path so Sequoia doesn't error out as often on long paths (> 104 bytes).
# Use the minimal amount of randomness to avoid collisions while allowing parallel tests.
require "securerandom"
random_hex = SecureRandom.hex(1)
random_hex = SecureRandom.hex(2)
HOMEBREW_TEMP = Pathname("#{homebrew_temp}/brewtests#{random_hex}".squeeze("/")).freeze
HOMEBREW_TEMP.mkpath

Expand Down

0 comments on commit 2f2ca82

Please sign in to comment.