Francois Gouget : winetest/cron: Optionally purge the really old test results.

Alexandre Julliard julliard at winehq.org
Thu Apr 8 16:02:42 CDT 2021


Module: tools
Branch: master
Commit: 027d1b5c51d4c74db184090df4c15d0c21184b40
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=027d1b5c51d4c74db184090df4c15d0c21184b40

Author: Francois Gouget <fgouget at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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 (




More information about the wine-cvs mailing list