From fd80abda0888564f26437834739ae456276771ff Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 20 May 2010 21:20:10 +0200 Subject: [PATCH] Don't exit with error in tests temp file cleanup if there are no files to clean --- tests/test_helper.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl index 86286cdb..a40602f3 100644 --- a/tests/test_helper.tcl +++ b/tests/test_helper.tcl @@ -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 {} { -- 2.45.2