commit c87c6f13c4b7d8026799c6e7a4399e77c1710de4 from: Sergey Bronnikov date: Tue Oct 08 14:29:26 2024 UTC test: fix minimal.test.lua The patch set a path to `tarantool` executable binary explicitly in the aforementioned test. NO_CHANGELOG=codehealth NO_DOC=codehealth (cherry picked from commit 7844e6034bd67f3e5a57710443373da5200e441a) commit - b05a35e5e99923cf0c1f773a0323931f434395c9 commit + c87c6f13c4b7d8026799c6e7a4399e77c1710de4 blob - 14ccec90c2a0b4f4cc5fd9d11837256c8b4591f0 blob + 403606a8cdd05fa55916093c9f7a5b6d1a872caa --- test/app-tap/minimal.test.lua +++ test/app-tap/minimal.test.lua @@ -1,5 +1,7 @@ #!/usr/bin/env tarantool +local TARANTOOL_PATH = arg[-1] + print('Hello, World!') -- @@ -19,7 +21,7 @@ script:close() io.flush() -os.execute("tarantool ./script-args.lua 1 2 3") +os.execute(("%s ./script-args.lua 1 2 3"):format(TARANTOOL_PATH)) -- -- LUA_PATH and LUA_CPATH argument handling @@ -56,7 +58,7 @@ for _, env in ipairs({ }) do local cmd = table.concat({ ("%s='%s'"):format(env[1], res[2]), - ('tarantool %s'):format(env[2]), + ('%s %s'):format(TARANTOOL_PATH, env[2]), }, ' ') local fh = io.popen(cmd) local rv = fh:read():gsub('-', '%%-'):gsub('+', '%%+'):gsub('?', '%%?')