Francois Gouget : winetest/cron: Optionally purge the really old test results.
Module: tools Branch: master Commit: 027d1b5c51d4c74db184090df4c15d0c21184b40 URL: https://source.winehq.org/git/tools.git/?a=commit;h=027d1b5c51d4c74db184090d... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Thu Apr 8 15:29:45 2021 +0200 winetest/cron: Optionally purge the really old test results. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- winetest/winetest.cron | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/winetest/winetest.cron b/winetest/winetest.cron index df27116..d7f0344 100755 --- a/winetest/winetest.cron +++ b/winetest/winetest.cron @@ -19,6 +19,7 @@ # Leave empty to disable the corresponding task build_compress=120 # days before compressing old-data builds +build_expire= # days before deleting old-data builds winetest_expire=120 # days before deleting winetest binaries queue_expire=30 # days before deleting queued reports @@ -84,6 +85,15 @@ then rm -rf "$dir" fi ) + # remove old build reports + if [ -n "$build_expire" ] + then ( + set -e + cd old-data + find . -mtime "+$build_expire" -name "*.tar.*" -print0 | \ + xargs -0 rm -f + fi ) + # remove old winetest binaries if [ -n "$winetest_expire" ] then (
participants (1)
-
Alexandre Julliard