dev-cmd/tests: fix when euid != uid.
Otherwise you get: `ruby: no -r allowed while running setuid (SecurityError)`
This commit is contained in:
parent
707abc97f2
commit
c4f2f06675
@ -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