From db86ddaf9ff5ffd5b6da84007dbbeb7ab22db7b9 Mon Sep 17 00:00:00 2001
From: Alexander Turenko <alexander.turenko@tarantool.org>
Date: Fri, 9 Jun 2023 02:59:38 +0300
Subject: [PATCH] test: return a dir from treegen.prepare_directory()

It makes the helper a bit more convenient to use it tests.

NO_DOC=testing helper
NO_TEST=see NO_DOC
NO_CHANGELOG=see NO_DOC

(cherry picked from commit f81b1aaca3607664c033392a66301e4746f8b3cc)
---
 test/treegen.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/treegen.lua b/test/treegen.lua
index 00ad7b3376..f0e8f8f456 100644
--- a/test/treegen.lua
+++ b/test/treegen.lua
@@ -58,6 +58,7 @@ function treegen.write_script(dir, script, body)
     local fh = fio.open(script_abspath, flags, mode)
     fh:write(body)
     fh:close()
+    return script_abspath
 end
 
 -- Generate a script that follows a template and write it at the
-- 
GitLab