summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"))