Overwrite Ruby's path for cgi in tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9d72f26584
commit
26e9234309
@ -13,6 +13,13 @@ module TestWEBrick
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class WEBrick::HTTPServlet::CGIHandler
|
||||||
|
remove_const :Ruby
|
||||||
|
Ruby = EnvUtil.rubybin
|
||||||
|
remove_const :CGIRunner
|
||||||
|
CGIRunner = "\"#{Ruby}\" \"#{WEBrick::Config::LIBDIR}/httpservlet/cgi_runner.rb\"" # :nodoc:
|
||||||
|
end
|
||||||
|
|
||||||
RubyBin = "\"#{EnvUtil.rubybin}\""
|
RubyBin = "\"#{EnvUtil.rubybin}\""
|
||||||
RubyBin << " --disable-gems"
|
RubyBin << " --disable-gems"
|
||||||
RubyBin << " \"-I#{File.expand_path("../..", File.dirname(__FILE__))}/lib\""
|
RubyBin << " \"-I#{File.expand_path("../..", File.dirname(__FILE__))}/lib\""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user