uitest/mass-testing/run.py |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit e203e20e5d64408bc5fbcbba6866343f9198baeb
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed Mar 9 16:40:27 2022 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Mar 9 16:40:27 2022 +0100

    mass-testing: clean leftovers in tmp regularly
    
    Change-Id: I7fccb96b56e3dded851492edd5b90a65fdb19c29

diff --git a/uitest/mass-testing/run.py b/uitest/mass-testing/run.py
index af1b47d..7bf4967 100755
--- a/uitest/mass-testing/run.py
+++ b/uitest/mass-testing/run.py
@@ -7,6 +7,8 @@
 
 import os
 import argparse
+import glob
+import shutil
 from subprocess import Popen, PIPE, TimeoutExpired
 import sys
 import signal
@@ -45,6 +47,13 @@ def kill_soffice():
             print("Killing process: " + str(pid))
             os.kill(pid, signal.SIGKILL)
 
+    # Also clean leftovers in /tmp
+    for filename in glob.glob("/tmp/OSL_PIPE_*"):
+        os.remove(filename)
+
+    for filename in glob.glob("/tmp/lu*.tmp"):
+        shutil.rmtree(filename)
+
 def start_logger(name):
     rootLogger = logging.getLogger()
     rootLogger.setLevel(os.environ.get("LOGLEVEL", "INFO"))

Reply via email to