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
|
||||
fs.writeDir(`{origin}/test`)
|
||||
|
||||
if fs.metadata(`{origin}/tools`).exists then
|
||||
fs.removeDir(`{origin}/tools`)
|
||||
end
|
||||
fs.writeDir(`{origin}/tools`)
|
||||
|
||||
progress:nextStage() -- fetch
|
||||
|
||||
do
|
||||
local contents = shared.fetch_raw("test/testkit.luau")
|
||||
local contents = shared.fetch_raw("tools/testkit.luau")
|
||||
if not contents.ok then
|
||||
progress:stop()
|
||||
stdio.ewrite(`🔥 Couldn't get the latest source for test/testkit.luau:\n{contents.err}\n`)
|
||||
return result(false, "Couldn't get the latest source for test/testkit.luau.")
|
||||
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 tools/testkit.luau.")
|
||||
end
|
||||
fs.writeFile(`{origin}/test/testkit.luau`, contents.val)
|
||||
fs.writeFile(`{origin}/tools/testkit.luau`, contents.val)
|
||||
end
|
||||
do
|
||||
local contents = shared.fetch_raw("test/tests.luau")
|
||||
|
|
Loading…
Reference in a new issue