Skip to content

Commit 62dc2a7

Browse files
authored
fix(test_harness): retain failure status when running tests sequentially (#407)
Currently, when running tests sequentially, the very last spec file that executes will determine whether a failure has happened or not.
1 parent 4b66054 commit 62dc2a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/plenary/test_harness.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function harness.test_directory(directory, opts)
138138
end)
139139
else
140140
log.debug("... Completed job number", i, j.code, j.signal)
141-
failure = j.code ~= 0 or j.signal ~= 0
141+
failure = failure or j.code ~= 0 or j.signal ~= 0
142142
end
143143
if failure and not opts.keep_going then
144144
break

0 commit comments

Comments
 (0)