uitest/mass-testing/run.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit f00b7b25d3ffa7ce22c421f95304790668aaf94f Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Fri Jun 24 10:57:30 2022 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Fri Jun 24 10:57:54 2022 +0200 mass-testing: fix removal of files and folders Change-Id: I5604fe254049f96635560ffa9b2663edbbd8c74e diff --git a/uitest/mass-testing/run.py b/uitest/mass-testing/run.py index 69cf3cb..1f6b884 100755 --- a/uitest/mass-testing/run.py +++ b/uitest/mass-testing/run.py @@ -53,7 +53,10 @@ def kill_soffice(): os.remove(filename) for filename in glob.glob("/tmp/lu*.tmp"): - shutil.rmtree(filename) + if os.path.isfile(filename): + os.remove(filename) + else: + shutil.rmtree(filename) def start_logger(name): rootLogger = logging.getLogger()