commit 62894f299b40e13acf7a5c0604caaafa18830712 from: Sergey Bronnikov via: Alexander Turenko date: Tue Oct 08 18:33:15 2024 UTC test: use built tarantool instead a system one The test gh_5747_crash_multiple_args_test.lua uses a `tarantool` binary that is available in a current PATH environment variable. In some cases, PATH may point to a system `tarantool` executable and this could be unexpected for those who run the test. The patch set a path to `tarantool` executable derived from a command-line used to run the test. NO_CHANGELOG=codehealth NO_DOC=codehealth (cherry picked from commit 1e907ddbd8db2587418d50dde3e06e985c47bded) commit - 41bbe3287e13021cdc5ad0c3d069b18b323eb8a1 commit + 62894f299b40e13acf7a5c0604caaafa18830712 blob - 7e3f512f3be5218309a20c20989c9ab4b34fa168 blob + cf08936a41e555b319ac7705dfff8fdf28ce5a69 --- test/app-luatest/gh_5747_crash_multiple_args_test.lua +++ test/app-luatest/gh_5747_crash_multiple_args_test.lua @@ -3,7 +3,12 @@ local t = require('luatest') local g = t.group() g.test_multiple_args = function() - local handle = io.popen('tarantool -ea=10 -e b=20 -ec=30 -e d=40 -e"print(a+b+c+d)"') + local TARANTOOL_PATH = arg[-1] + local cmd = string.format( + '%s -ea=10 -e b=20 -ec=30 -e d=40 -e"print(a+b+c+d)"', + TARANTOOL_PATH + ) + local handle = io.popen(cmd) local result = handle:read() t.assert_equals(result, '100') end