Skip to content

Commit

Permalink
Merge pull request torch#686 from davidsaxton/tester
Browse files Browse the repository at this point in the history
torch.Tester early abort and disable: make them work when used together
  • Loading branch information
soumith committed May 18, 2016
2 parents 8a9cd44 + b3457c5 commit bfa7fc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tester.lua
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,8 @@ function Tester:_run(tests)
io.write('\n')
io.flush()

if self.earlyAbort and (i < ntests) and (not status or not pass) then
if self.earlyAbort and (i < ntests) and (not status or not pass)
and (not skip) then
io.write('Aborting on first error, not all tests have been executed\n')
break
end
Expand Down

0 comments on commit bfa7fc8

Please sign in to comment.