diff --git a/scripts/run-tests-e3.lua b/scripts/run-tests-e3.lua index 3e5ecdcb2..c201d8750 100644 --- a/scripts/run-tests-e3.lua +++ b/scripts/run-tests-e3.lua @@ -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 diff --git a/scripts/run-tests.lua b/scripts/run-tests.lua index a230f8e97..5583ef673 100644 --- a/scripts/run-tests.lua +++ b/scripts/run-tests.lua @@ -10,4 +10,5 @@ require 'eressea' require 'eressea.path' require 'tests' require 'lunit' -lunit.main() +result = lunit.main() +return result.errors