Skip to content

Commit

Permalink
clean-dir (#2507)
Browse files Browse the repository at this point in the history
Co-authored-by: wuxianrong <wuxianrong@360.cn>
  • Loading branch information
2 people authored and brother-jin committed Apr 17, 2024
1 parent 06c521c commit 94c5ada
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pikatests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# clear the log file
function cleanup() {
rm -rf ./log
rm -rf db
rm -rf ./log[0-9]*
rm -rf ./db[0-9]*
rm -rf dbsync/
rm src/redis-server
}
Expand Down Expand Up @@ -70,4 +70,9 @@ if [ $? -ne 0 ]; then
cleanup
exit 1
fi
cleanup

# You can use './pikatests.sh all clean 'to ensure that the
# data can be deleted immediately after the test
if [ "$2" == "clean" ]; then
cleanup
fi

0 comments on commit 94c5ada

Please sign in to comment.