test-bugzilla-files/zip.sh |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 8fdbf2bca26eaa1987bdfa0ca0fc29a93a545e02
Author:     Thorsten Behrens <[email protected]>
AuthorDate: Tue Nov 8 13:39:03 2022 +0100
Commit:     Thorsten Behrens <[email protected]>
CommitDate: Tue Nov 8 13:55:52 2022 +0100

    Avoid odd 'core-*.backtrace.txt' files on zero crashes
    
    ..by temporarily setting nullglob & skipping the foreach..
    
    Change-Id: Ida471c63a70a0ea945635caef595ba890526f2da
    Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/142433
    Reviewed-by: Gabor Kelemen <[email protected]>
    Reviewed-by: Thorsten Behrens <[email protected]>
    Tested-by: Thorsten Behrens <[email protected]>

diff --git a/test-bugzilla-files/zip.sh b/test-bugzilla-files/zip.sh
index c2f463f..a843ac3 100755
--- a/test-bugzilla-files/zip.sh
+++ b/test-bugzilla-files/zip.sh
@@ -6,7 +6,9 @@ echo $SHA
 cd "$CRASHTESTDATA"/
 cd "$CRASHTESTDATA"/control/
 mkdir -p "$CRASHTESTDATA"/logs/$SHA/backtraces
+shopt -s nullglob # do nothing for zero core dumps
 for a in */core*; do gdb "$INSTDIR"/program/soffice.bin $a -ex "thread apply 
all backtrace full" --batch > "$CRASHTESTDATA"/logs/$SHA/backtraces/`dirname 
"$a"`-`basename "$a"`.backtrace.txt; done
+shopt -u nullglob # reset to normal globbing
 cat */crashlog.txt > "$CRASHTESTDATA"/logs/$SHA/crashlog.txt
 cat */exportCrash.txt > "$CRASHTESTDATA"/logs/$SHA/exportCrash.txt
 echo "filename,total-diff-count,attr-diff-count,node-diff-count" > 
"$CRASHTESTDATA"/logs/$SHA/odfundifflog.csv

Reply via email to