summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-11 09:33:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-11 10:36:52 +0100
commitf8ff10fe45a61b7099e64a5998a36258c5328dd9 (patch)
tree241b647caa8f7caf0ebdbfc62dd4078e94c0224f
parent9795e383af868f3d293032308267734e845cc373 (diff)
create zip files to transport logs fresh each time
don't let them grow without bound Change-Id: I373ec1ccf18973dcfe4f96859cf20d3d01e8e867 Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/128276 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rwxr-xr-xtest-bugzilla-files/zip.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test-bugzilla-files/zip.sh b/test-bugzilla-files/zip.sh
index b35117f..4808b43 100755
--- a/test-bugzilla-files/zip.sh
+++ b/test-bugzilla-files/zip.sh
@@ -19,8 +19,10 @@ num_of_excluded_file=$(< "/srv/crashtestdata/odfundiff_exclude_list.txt" wc -l)
previous_hash="$(cat /srv/crashtestdata/previous/hash.txt)"
rm -rf /srv/crashtestdata/logs/$SHA/odfundiff
cd /srv/crashtestdata/current/srv/crashtestdata/files/
+rm -f odfundiff.zip
zip -r -q odfundiff.zip */*.odfundiff
mv odfundiff.zip /srv/crashtestdata/logs/$SHA/.
+rm -f validation.zip
zip -r -q validation.zip */*.log
mv validation.zip /srv/crashtestdata/logs/$SHA/.
cd /srv/crashtestdata/logs/$SHA
@@ -33,6 +35,7 @@ cp ../exportCrashes.csv ../importCrash.csv ../odfundiff.csv ../validationErrors.
python analyze_logs.py
cp exportCrashes.csv importCrash.csv odfundiff.csv validationErrors.csv ../.
cd ..
+rm -f current.zip
zip -r current.zip $SHA/*
if [ -z "$CRASHTEST_NO_UPLOAD" ]; then
scp current.zip upload@gimli.documentfoundation.org:/srv/www/dev-builds.libreoffice.org/crashtest/.