From e6c79f862da2b3167965cd695884e0566f9b191f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 21 Nov 2011 21:21:14 -0800 Subject: [PATCH] Remove posix-spawn dependency in rake acceptance:config --- tasks/acceptance.rake | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tasks/acceptance.rake b/tasks/acceptance.rake index aec00b650..4733e3f8d 100644 --- a/tasks/acceptance.rake +++ b/tasks/acceptance.rake @@ -67,14 +67,14 @@ namespace :acceptance do # Generate the binstubs for the Vagrant binary tempdir = Tempdir.new - pid, stdin, stdout, stderr = - POSIX::Spawn.popen4("bundle", "install", "--binstubs", tempdir.path) - pid, status = Process.waitpid2(pid) - if status.exitstatus != 0 + process = ChildProcess.build("bundle", "install", "--binstubs", tempdir.path) + process.io.inherit! + process.start + process.poll_for_exit(64000) + if process.exit_code != 0 # Bundle install failed... - puts "Bundle install failed! Error:" - puts stderr.read - exit 1 + puts "Bundle install failed!" + abort end # Generate the actual configuration