trivial fix to make it buildable

This commit is contained in:
Akira TAGOH 2021-04-19 17:37:57 +09:00
parent e8ec449b6b
commit 8f97c0421b

View File

@ -750,9 +750,13 @@ local function gentestyaml()
end
io.stderr:write("Generating tests.yml...")
local f = io.open("tests/tests.yml", "w")
f:write(yaml)
f:close()
io.stderr:write("Done!")
if f then
f:write(yaml)
f:close()
io.stderr:write("Done!")
else
io.stderr:write("Unable to open tests.yml")
end
end
local function notopkg(table)