From 8153b3c8fdfc2e266a5c2ba945cc827878f502aa Mon Sep 17 00:00:00 2001 From: Harkrishn Patro Date: Tue, 26 Mar 2024 08:26:22 -0700 Subject: [PATCH] Cleanup tcl tmp directory leaking resources (#34) Few of the servers log are stored as `server1/2/3.log` . Various type of acl files are created and weren't getting cleaned up prior to this change. --- tests/test_helper.tcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl index ea000b9d4..c110885c1 100644 --- a/tests/test_helper.tcl +++ b/tests/test_helper.tcl @@ -328,7 +328,8 @@ proc cleanup {} { if {!$::quiet} {puts -nonewline "Cleanup: may take some time... "} flush stdout 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*.*]} + catch {exec rm -rf {*}[glob tests/tmp/*.acl.*]} if {!$::quiet} {puts "OK"} }