Skip to content
Snippets Groups Projects
Commit 4db968c2 authored by Sergey Bronnikov's avatar Sergey Bronnikov Committed by Alexander Turenko
Browse files

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)
parent 62894f29
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env tarantool #!/usr/bin/env tarantool
local TARANTOOL_PATH = arg[-1]
print('Hello, World!') print('Hello, World!')
-- --
...@@ -19,7 +21,7 @@ script:close() ...@@ -19,7 +21,7 @@ script:close()
io.flush() 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 -- LUA_PATH and LUA_CPATH argument handling
...@@ -56,7 +58,7 @@ for _, env in ipairs({ ...@@ -56,7 +58,7 @@ for _, env in ipairs({
}) do }) do
local cmd = table.concat({ local cmd = table.concat({
("%s='%s'"):format(env[1], res[2]), ("%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 fh = io.popen(cmd)
local rv = fh:read():gsub('-', '%%-'):gsub('+', '%%+'):gsub('?', '%%?') local rv = fh:read():gsub('-', '%%-'):gsub('+', '%%+'):gsub('?', '%%?')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment