commit ec1f1a2ec538447b255c344229dc992572a3b5d3 from: Sergey Bronnikov date: Mon Oct 07 12:14:05 2024 UTC test: use built tarantool instead a system one The test gh_5747_crash_multiple_args_test.lua use a tarantool binary that is available in a current PATH environment variable. In some cases, PATH may point to a system tarantool binary and this could be unexpected for those who run the test. The patch set a path to tarantool binary derived from a command-line used to run the test. NO_CHANGELOG=codehealth NO_DOC=codehealth commit - dfc8390bc45970ff21a221881dbb145f3ea720b4 commit + ec1f1a2ec538447b255c344229dc992572a3b5d3 blob - 7e3f512f3be5218309a20c20989c9ab4b34fa168 blob + c9bc4c26113036a9b366587832d423e6c1d18faf --- test/app-luatest/gh_5747_crash_multiple_args_test.lua +++ test/app-luatest/gh_5747_crash_multiple_args_test.lua @@ -3,7 +3,11 @@ 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 = + ('%s -ea=10 -e b=20 -ec=30 -e d=40 -e"print(a+b+c+d)"'): + format(TARANTOOL_PATH) + local handle = io.popen(cmd) local result = handle:read() t.assert_equals(result, '100') end