commit 663efdceb9f1d949d2664e26bf574bbe90f00603 from: Sergey Bronnikov date: Tue Oct 08 14:25:27 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 - f7ba64e078dae297d8e674bfbb82d1b88e5fd5e1 commit + 663efdceb9f1d949d2664e26bf574bbe90f00603 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('?', '%%?')