Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7905331e
Commit
7905331e
authored
Jul 23, 2010
by
Pieter Noordhuis
Browse files
exit with non-zero status when there are failed tests
parent
fe2173ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_helper.tcl
View file @
7905331e
...
@@ -82,13 +82,13 @@ proc main {} {
...
@@ -82,13 +82,13 @@ proc main {} {
execute_tests
"unit/sort"
execute_tests
"unit/sort"
execute_tests
"unit/expire"
execute_tests
"unit/expire"
execute_tests
"unit/other"
execute_tests
"unit/other"
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment