Merge pull request #17073 from Homebrew/fix_brew_tests_euid
dev-cmd/tests: fix when euid != uid.
This commit is contained in:
commit
7e887bb325
@ -144,6 +144,10 @@ module Homebrew
|
|||||||
ohai "Running tests with BuildPulse-friendly settings"
|
ohai "Running tests with BuildPulse-friendly settings"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Workaround for:
|
||||||
|
# ruby: no -r allowed while running setuid (SecurityError)
|
||||||
|
Process::UID.change_privilege(Process.euid) if Process.euid != Process.uid
|
||||||
|
|
||||||
if parallel
|
if parallel
|
||||||
system "bundle", "exec", "parallel_rspec", *parallel_args, "--", *bundle_args, "--", *files
|
system "bundle", "exec", "parallel_rspec", *parallel_args, "--", *bundle_args, "--", *files
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user