Make tests return the number of errors as exit code.

This commit is contained in:
Enno Rehling 2015-02-16 16:59:07 +01:00
parent e014485f3c
commit 426aeee076
2 changed files with 4 additions and 2 deletions

View File

@ -16,4 +16,5 @@ require 'lunit'
eressea.settings.set("rules.alliances", "0")
rules = require('eressea.' .. config.rules)
lunit.main()
result = lunit.main()
return result.errors

View File

@ -10,4 +10,5 @@ require 'eressea'
require 'eressea.path'
require 'tests'
require 'lunit'
lunit.main()
result = lunit.main()
return result.errors