mirror of
https://github.com/fluencelabs/redis
synced 2025-06-11 16:21:21 +00:00
exit with non-zero status when there are failed tests
This commit is contained in:
@ -103,12 +103,12 @@ proc main {} {
|
|||||||
execute_tests "unit/other"
|
execute_tests "unit/other"
|
||||||
execute_tests "unit/cas"
|
execute_tests "unit/cas"
|
||||||
|
|
||||||
|
cleanup
|
||||||
puts "\n[expr $::passed+$::failed] tests, $::passed passed, $::failed failed"
|
puts "\n[expr $::passed+$::failed] tests, $::passed passed, $::failed failed"
|
||||||
if {$::failed > 0} {
|
if {$::failed > 0} {
|
||||||
puts "\n*** WARNING!!! $::failed FAILED TESTS ***\n"
|
puts "\n*** WARNING!!! $::failed FAILED TESTS ***\n"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# parse arguments
|
# parse arguments
|
||||||
|
Reference in New Issue
Block a user