test_runner failed to correctly count failed tests (#515)
https://github.com/premake/premake-core/issues/514
This commit is contained in:
parent
1f5ea6a232
commit
453c1eda8e
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user