test-bugzilla-files/execute.sh |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 496d30ea0bc3bb3e912700806e87778bee4911fd
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sat Dec 13 21:10:01 2025 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sat Dec 13 22:14:33 2025 +0100

    use a unique tmpdir and throw it away on success
    
    workaround potential file leaks.
    
    Change-Id: I1f00b1008bfcc7c7ddd81acc731e859ffab3aca6
    Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/195614
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Caolán McNamara <[email protected]>

diff --git a/test-bugzilla-files/execute.sh b/test-bugzilla-files/execute.sh
index b0df3c7d..66a6c027 100755
--- a/test-bugzilla-files/execute.sh
+++ b/test-bugzilla-files/execute.sh
@@ -9,9 +9,11 @@ else
 fi
 mkdir -p ${CRASHTESTDATA}/control/$dir_name
 cd ${CRASHTESTDATA}/control/$dir_name
-TMPDIR=${CRASHTESTDATA}/tmpdir ${INSTDIR}/program/python 
${dir}/test-bugzilla-files.py --soffice=path:${INSTDIR}/program/soffice 
--userdir=file://${USERDIR}/libreoffice_$dir_name/4 $1 >> 
${CRASHTESTDATA}/console_$dir_name.log 2>&1
+SOTMPDIR=`mktemp -p ${CRASHTESTDATA}/tmpdir -d`
+TMPDIR=$SOTMPDIR ${INSTDIR}/program/python ${dir}/test-bugzilla-files.py 
--soffice=path:${INSTDIR}/program/soffice 
--userdir=file://${USERDIR}/libreoffice_$dir_name/4 $1 >> 
${CRASHTESTDATA}/console_$dir_name.log 2>&1
 if [ $? -eq 0 ]; then
     rm -f ${CRASHTESTDATA}/console_$dir_name.log
+    rm -rf $SOTMPDIR
 fi
 echo "$(date): Task finished: $dir_name"
 rm -r ${USERDIR}/libreoffice_$dir_name

Reply via email to