Remove posix-spawn dependency in rake acceptance:config
This commit is contained in:
parent
315733703a
commit
e6c79f862d
|
@ -67,14 +67,14 @@ namespace :acceptance do
|
||||||
|
|
||||||
# Generate the binstubs for the Vagrant binary
|
# Generate the binstubs for the Vagrant binary
|
||||||
tempdir = Tempdir.new
|
tempdir = Tempdir.new
|
||||||
pid, stdin, stdout, stderr =
|
process = ChildProcess.build("bundle", "install", "--binstubs", tempdir.path)
|
||||||
POSIX::Spawn.popen4("bundle", "install", "--binstubs", tempdir.path)
|
process.io.inherit!
|
||||||
pid, status = Process.waitpid2(pid)
|
process.start
|
||||||
if status.exitstatus != 0
|
process.poll_for_exit(64000)
|
||||||
|
if process.exit_code != 0
|
||||||
# Bundle install failed...
|
# Bundle install failed...
|
||||||
puts "Bundle install failed! Error:"
|
puts "Bundle install failed!"
|
||||||
puts stderr.read
|
abort
|
||||||
exit 1
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Generate the actual configuration
|
# Generate the actual configuration
|
||||||
|
|
Loading…
Reference in New Issue