mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
cleanup after test
This commit is contained in:
parent
e4715f0011
commit
c7c16a32a7
@ -140,7 +140,7 @@ proc s {args} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
proc cleanup {} {
|
proc cleanup {} {
|
||||||
puts -nonewline "Cleanup: warning may take some time... "
|
puts -nonewline "Cleanup: may take some time... "
|
||||||
flush stdout
|
flush stdout
|
||||||
catch {exec rm -rf {*}[glob tests/tmp/redis.conf.*]}
|
catch {exec rm -rf {*}[glob tests/tmp/redis.conf.*]}
|
||||||
catch {exec rm -rf {*}[glob tests/tmp/server.*]}
|
catch {exec rm -rf {*}[glob tests/tmp/server.*]}
|
||||||
@ -281,9 +281,11 @@ proc the_end {} {
|
|||||||
foreach failed $::failed_tests {
|
foreach failed $::failed_tests {
|
||||||
puts "*** $failed"
|
puts "*** $failed"
|
||||||
}
|
}
|
||||||
|
cleanup
|
||||||
exit 1
|
exit 1
|
||||||
} else {
|
} else {
|
||||||
puts "\n[colorstr bold-white {\o/}] [colorstr bold-green {All tests passed without errors!}]\n"
|
puts "\n[colorstr bold-white {\o/}] [colorstr bold-green {All tests passed without errors!}]\n"
|
||||||
|
cleanup
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user