Skip to content
Snippets Groups Projects
Commit f81b1aac authored by Alexander Turenko's avatar Alexander Turenko Committed by Alexander Turenko
Browse files

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
parent cac50493
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,7 @@ function treegen.write_script(dir, script, body) ...@@ -58,6 +58,7 @@ function treegen.write_script(dir, script, body)
local fh = fio.open(script_abspath, flags, mode) local fh = fio.open(script_abspath, flags, mode)
fh:write(body) fh:write(body)
fh:close() fh:close()
return script_abspath
end end
-- Generate a script that follows a template and write it at the -- Generate a script that follows a template and write it at the
......
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