test-bugzilla-files/zip.sh | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit f8ff10fe45a61b7099e64a5998a36258c5328dd9
Author: Caolán McNamara <[email protected]>
AuthorDate: Tue Jan 11 09:33:47 2022 +0000
Commit: Caolán McNamara <[email protected]>
CommitDate: Tue Jan 11 10:36:52 2022 +0100
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 <[email protected]>
Reviewed-by: Caolán McNamara <[email protected]>
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
[email protected]:/srv/www/dev-builds.libreoffice.org/crashtest/.