[Libreoffice-commits] dev-tools.git: test-bugzilla-files/new-control.py test-bugzilla-files/zip.sh
GülÅah Köse (via logerrit)
logerrit at kemper.freedesktop.org
Fri Oct 8 11:29:01 UTC 2021
test-bugzilla-files/new-control.py | 6 ++++++
test-bugzilla-files/zip.sh | 2 ++
2 files changed, 8 insertions(+)
New commits:
commit 53866cbb747772cfbad8f39bac7fb94a1fa9fbee
Author: Gülşah Köse <gulsah.kose at collabora.com>
AuthorDate: Fri Oct 8 12:08:02 2021 +0300
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Oct 8 13:28:43 2021 +0200
Give info about about previous state of version.
We add info into the mail about which version of the LibreOffice is
created the previous state.
Change-Id: I8b05e27ed61c198eee54003ad8e1c01c2c8377b6
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/123252
Tested-by: Miklos Vajna <vmiklos at collabora.com>
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
diff --git a/test-bugzilla-files/new-control.py b/test-bugzilla-files/new-control.py
index 6635db6..e8cc89f 100644
--- a/test-bugzilla-files/new-control.py
+++ b/test-bugzilla-files/new-control.py
@@ -69,6 +69,12 @@ def saveAsPreviousState(exported_files):
os.makedirs(os.path.dirname("/srv/crashtestdata/previous"+file[len(prefix):]), exist_ok=True)
copyfile(file, "/srv/crashtestdata/previous"+file[len(prefix):])
+ SHAcmd = "cd ~/source/libo-core/ && git rev-parse HEAD"
+ previous_SHA = str(subprocess.check_output(SHAcmd, shell=True), encoding='utf-8')
+ previous_SHA_file = open("/srv/crashtestdata/previous/hash.txt", "w")
+ previous_SHA_file.write(previous_SHA)
+ previous_SHA_file.close()
+
def get_list_of_files(directory_name):
list_of_file = os.listdir(directory_name)
all_files = list()
diff --git a/test-bugzilla-files/zip.sh b/test-bugzilla-files/zip.sh
index 7a1acad..2c4faf4 100755
--- a/test-bugzilla-files/zip.sh
+++ b/test-bugzilla-files/zip.sh
@@ -14,6 +14,7 @@ num_of_odf_diffs=$(< "/srv/crashtestdata/logs/$SHA/odfundifflog.txt" wc -l)
num_of_import_crashes=$(< "/srv/crashtestdata/logs/$SHA/crashlog.txt" wc -l)
num_of_export_crashes=$(< "/srv/crashtestdata/logs/$SHA/exportCrash.txt" wc -l)
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/
zip -r -q odfundiff.zip */*.odfundiff
@@ -63,6 +64,7 @@ $num_of_import_crashes files have crashed during import.
$num_of_export_crashes files have crashed during export.
$num_of_odf_diffs files have differences compared to the previous run. ($num_of_excluded_file files are excluded.)
+Please note that previous state is saved with $previous_hash
EOF
More information about the Libreoffice-commits
mailing list