test_runner failed to correctly count failed tests (#515)

https://github.com/premake/premake-core/issues/514
This commit is contained in:
Tom van Dijck 2016-06-15 14:38:47 -07:00 committed by GitHub
parent 1f5ea6a232
commit 453c1eda8e

View File

@ -64,11 +64,9 @@
test.testFunction = testFunction
if m.isValid(test) and not m.isSuppressed(test.suiteName .. "." .. test.testName) then
if _.runTest(test) then
passed = passed + 1
else
failed = failed + 1
end
local np, nf = _.runTest(test)
passed = passed + np
failed = failed + nf
end
end