зеркало из https://github.com/github/ruby.git
[ruby/irb] Test should not depend on user's irbrc file specified by
ENV['IRBRC'] (https://github.com/ruby/irb/pull/717) https://github.com/ruby/irb/commit/1d2d35dd33
This commit is contained in:
Родитель
88262875fd
Коммит
8b4e54f979
|
@ -113,6 +113,7 @@ module TestIRB
|
|||
# Test should not depend on user's irbrc file
|
||||
@envs["HOME"] ||= tmp_dir
|
||||
@envs["XDG_CONFIG_HOME"] ||= tmp_dir
|
||||
@envs["IRBRC"] = nil unless @envs.key?("IRBRC")
|
||||
|
||||
PTY.spawn(@envs.merge("TERM" => "dumb"), *cmd) do |read, write, pid|
|
||||
Timeout.timeout(TIMEOUT_SEC) do
|
||||
|
|
Загрузка…
Ссылка в новой задаче