Make some changes to have tests run on 1.8.7

This commit is contained in:
Mitchell Hashimoto 2011-11-03 22:12:51 -07:00
parent cab1e4e49b
commit d0e191a96c
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,4 @@
require "rubygems"
require "contest"
require "log4r"

View File

@ -50,10 +50,13 @@ module Acceptance
def execute(command, *argN)
command = replace_command(command)
# Add our hash options to the arguments list
argN << { :chdir => @workdir.to_s }
# Execute in a separate process, wait for it to complete, and
# return the IO streams.
@logger.info("Executing: #{command} #{argN.inspect}")
pid, stdin, stdout, stderr = popen4(@env, command, *argN, :chdir => @workdir.to_s)
pid, stdin, stdout, stderr = popen4(@env, command, *argN)
_pid, status = Process.waitpid2(pid)
@logger.info("Exit status: #{status.exitstatus}")