From fd86f01108988b3cae708efe338cbfff1bb2483b Mon Sep 17 00:00:00 2001 From: Nikolay Shirokovskiy Date: Thu, 29 Jun 2023 11:43:34 +0300 Subject: [PATCH] test: reset readline configuration for justrun too This fixes gh_8613_new_cli_behaviour_test run with my custom .inputrc (I use vi-cmd-mode-string/vi-ins-mode-string). We already reset readline configuration in interactive_tarantool.lua. Follows up ground works done for #7774 NO_DOC=test harness NO_TEST=test harness NO_CHANGELOG=test harness (cherry picked from commit 028c65e04389cafd02d31fa70147b1e1b1f93217) --- test/justrun.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/justrun.lua b/test/justrun.lua index 5a6ad5decba8..596adf88e943 100644 --- a/test/justrun.lua +++ b/test/justrun.lua @@ -72,6 +72,10 @@ function justrun.tarantool(dir, env, args, opts) local opts = opts or {} assert(type(opts) == 'table') + -- Prevent system/user inputrc configuration file from + -- influencing testing code. + env['INPUTRC'] = '/dev/null' + local tarantool_exe = arg[-1] -- Use popen.shell() instead of popen.new() due to lack of -- cwd option in popen (gh-5633).