]> git.saurik.com Git - redis.git/commitdiff
Don't exit with error in tests temp file cleanup if there are no files to clean
authorantirez <antirez@gmail.com>
Thu, 20 May 2010 19:20:10 +0000 (21:20 +0200)
committerantirez <antirez@gmail.com>
Thu, 20 May 2010 19:20:10 +0000 (21:20 +0200)
tests/test_helper.tcl

index 86286cdbdadd051fc9bc5a116637d0c291d4d73f..a40602f39c952bd3defcaf7b9963a77227c52ed7 100644 (file)
@@ -50,8 +50,8 @@ proc s {args} {
 }
 
 proc cleanup {} {
-    exec rm -rf {*}[glob tests/tmp/redis.conf.*]
-    exec rm -rf {*}[glob tests/tmp/server.*]
+    catch {exec rm -rf {*}[glob tests/tmp/redis.conf.*]}
+    catch {exec rm -rf {*}[glob tests/tmp/server.*]}
 }
 
 proc main {} {