summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-03-09 16:40:27 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-03-09 16:40:27 +0100
commite203e20e5d64408bc5fbcbba6866343f9198baeb (patch)
treead8a8bbb06d4655480adb82f16fef3addfe71ac0
parent6a3d72cff8d27daac0fcff3cbc027659109676a2 (diff)
mass-testing: clean leftovers in tmp regularlyHEADmaster
Change-Id: I7fccb96b56e3dded851492edd5b90a65fdb19c29
-rwxr-xr-xuitest/mass-testing/run.py9
1 files changed, 9 insertions, 0 deletions
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"))