Browse files

Sentinel test: jump to next unit on test failure.

Sentinel tests are designed to be dependent on the previous tests in the
same unit, so usually we can't continue with the next test in the same
unit if a previous test failed.
  • Loading branch information...
antirez committed Feb 25, 2014
1 parent 044b627 commit a9360c62e8b9f0d612e3cb7054d9fb7a1a251f52
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/sentinel.tcl
@@ -145,6 +145,8 @@ proc test {descr code} {
set msg [string range $error 10 end]
puts [colorstr red $msg]
if {$::pause_on_error} pause_on_error
+ puts "(Jumping to next unit after error)"
+ return -code continue
} else {
# Re-raise, let handler up the stack take care of this.
error $error $::errorInfo

0 comments on commit a9360c6

Please sign in to comment.