diff --git a/test/interactive_tarantool.lua b/test/interactive_tarantool.lua index bf67654e0f23c97dbd6091c54878c85e24e864b2..601e7991b19d4e52a776b89962d3d801334e75f7 100644 --- a/test/interactive_tarantool.lua +++ b/test/interactive_tarantool.lua @@ -294,6 +294,7 @@ end function M._new_internal(opts) local opts = opts or {} local args = opts.args or {} + local env = opts.env or {} local prompt = opts.prompt local tarantool_exe = arg[-1] @@ -301,7 +302,7 @@ function M._new_internal(opts) stdin = popen.opts.PIPE, stdout = popen.opts.PIPE, stderr = popen.opts.PIPE, - env = { + env = fun.chain({ -- Don't know why, but without defined TERM environment -- variable readline doesn't accept INPUTRC environment -- variable. @@ -313,7 +314,7 @@ function M._new_internal(opts) -- (because the command in the echo output will be -- trimmed). INPUTRC = '/dev/null', - }, + }, env):tomap(), }) local res = setmetatable({