Fix tests
This commit is contained in:
parent
9bed4a8cb1
commit
26ead3a62e
1 changed files with 9 additions and 4 deletions
|
@ -39,16 +39,21 @@ local function test(origin: string): result.Identity<boolean>
|
||||||
end
|
end
|
||||||
fs.writeDir(`{origin}/test`)
|
fs.writeDir(`{origin}/test`)
|
||||||
|
|
||||||
|
if fs.metadata(`{origin}/tools`).exists then
|
||||||
|
fs.removeDir(`{origin}/tools`)
|
||||||
|
end
|
||||||
|
fs.writeDir(`{origin}/tools`)
|
||||||
|
|
||||||
progress:nextStage() -- fetch
|
progress:nextStage() -- fetch
|
||||||
|
|
||||||
do
|
do
|
||||||
local contents = shared.fetch_raw("test/testkit.luau")
|
local contents = shared.fetch_raw("tools/testkit.luau")
|
||||||
if not contents.ok then
|
if not contents.ok then
|
||||||
progress:stop()
|
progress:stop()
|
||||||
stdio.ewrite(`🔥 Couldn't get the latest source for test/testkit.luau:\n{contents.err}\n`)
|
stdio.ewrite(`🔥 Couldn't get the latest source for tools/testkit.luau:\n{contents.err}\n`)
|
||||||
return result(false, "Couldn't get the latest source for test/testkit.luau.")
|
return result(false, "Couldn't get the latest source for tools/testkit.luau.")
|
||||||
end
|
end
|
||||||
fs.writeFile(`{origin}/test/testkit.luau`, contents.val)
|
fs.writeFile(`{origin}/tools/testkit.luau`, contents.val)
|
||||||
end
|
end
|
||||||
do
|
do
|
||||||
local contents = shared.fetch_raw("test/tests.luau")
|
local contents = shared.fetch_raw("test/tests.luau")
|
||||||
|
|
Loading…
Reference in a new issue