Skip to content

Commit

Permalink
Return 1 to OS if any tests fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
haberman committed Apr 8, 2012
1 parent 1ad6835 commit 5cbb494
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lunitx.lua
Expand Up @@ -13,6 +13,9 @@ atexit(function()
print(emsg) print(emsg)
os.exit(1) os.exit(1)
end end
if lunit.stats.failed > 0 then
os.exit(1)
end
end) end)


return lunit return lunit

0 comments on commit 5cbb494

Please sign in to comment.