mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Make script exit with code 1 when tests fail
This commit is contained in:
parent
7f73ae80dc
commit
a894313a4b
3 changed files with 20 additions and 3 deletions
|
|
@ -88,9 +88,18 @@ for _, log in logs do
|
|||
stdio.write(`{stdio.color("reset")}\n`)
|
||||
end
|
||||
|
||||
local results = luau_execute.get_output(task)[1]
|
||||
if not results then
|
||||
error("plugin tests did not return any results")
|
||||
end
|
||||
|
||||
local status = luau_execute.check_status(task)
|
||||
if status == "COMPLETE" then
|
||||
process.exit(0)
|
||||
if results.failureCount == 0 then
|
||||
process.exit(0)
|
||||
else
|
||||
process.exit(1)
|
||||
end
|
||||
else
|
||||
print()
|
||||
print("Task did not finish successfully")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue