forked from github/server
Make tests return the number of errors as exit code.
This commit is contained in:
parent
e014485f3c
commit
426aeee076
|
@ -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
|
||||
|
|
|
@ -10,4 +10,5 @@ require 'eressea'
|
|||
require 'eressea.path'
|
||||
require 'tests'
|
||||
require 'lunit'
|
||||
lunit.main()
|
||||
result = lunit.main()
|
||||
return result.errors
|
||||
|
|
Loading…
Reference in New Issue