From 4db968c295d4addde2a4905268f1df5540abdad8 Mon Sep 17 00:00:00 2001
From: Sergey Bronnikov <sergeyb@tarantool.org>
Date: Tue, 1 Oct 2024 10:19:22 +0300
Subject: [PATCH] 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)
---
 test/app-tap/minimal.test.lua | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/app-tap/minimal.test.lua b/test/app-tap/minimal.test.lua
index 14ccec90c2..403606a8cd 100755
--- a/test/app-tap/minimal.test.lua
+++ b/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('?', '%%?')
-- 
GitLab