Skip to content

Commit

Permalink
exit with non-zero status when there are failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Jul 23, 2010
1 parent fe2173a commit 7905331
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_helper.tcl
Expand Up @@ -82,13 +82,13 @@ proc main {} {
execute_tests "unit/sort"
execute_tests "unit/expire"
execute_tests "unit/other"


cleanup
puts "\n[expr $::passed+$::failed] tests, $::passed passed, $::failed failed"
if {$::failed > 0} {
puts "\n*** WARNING!!! $::failed FAILED TESTS ***\n"
exit 1
}

cleanup
}

# parse arguments
Expand Down

0 comments on commit 7905331

Please sign in to comment.