commit a93df30056070f6dc879ebb7d2c5d360a6f51473 from: Sergey Bronnikov via: Alexander Turenko date: Tue Oct 08 18:09:55 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 - 3c3090ac6c8b4ece4ee3ee6196dfae98bf2335d4 commit + a93df30056070f6dc879ebb7d2c5d360a6f51473 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('?', '%%?')