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.
This commit is contained in:
Harkrishn Patro 2024-03-26 08:26:22 -07:00 committed by GitHub
parent 1c9710fca1
commit 8153b3c8fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"}
}