test-bugzilla-files/test-bugzilla-files.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
New commits: commit c5ee461480f3872defa4d3b2374d9fd078f66366 Author: Gülşah Köse <gulsah.k...@collabora.com> AuthorDate: Wed Oct 13 10:17:40 2021 +0300 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Oct 13 09:25:03 2021 +0200 Add warning if input file list changed but previous not updated. Change-Id: If22c0c9ded77d428abde5fedd7f0b8d1eb65c624 Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/123545 Tested-by: Miklos Vajna <vmik...@collabora.com> Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/test-bugzilla-files/test-bugzilla-files.py b/test-bugzilla-files/test-bugzilla-files.py index 45b1613..6dec0e0 100644 --- a/test-bugzilla-files/test-bugzilla-files.py +++ b/test-bugzilla-files/test-bugzilla-files.py @@ -693,8 +693,13 @@ if __name__ == "__main__": print(odfundiffCommandWithURL) try: output = str(subprocess.check_output(odfundiffCommandWithURL, shell=True, timeout=600), encoding='utf-8') - if not "Diff finished, number of differences found: 0" in output and \ - not filename in exclude_list: + if "IOException" in output: + print("Previous state doesn't include %s. It seems input file list is changed.\ + Previous state needs to be updated. If you are doing now, please ignore \ + this warning." % (filename)) + continue + elif not "Diff finished, number of differences found: 0" in output and \ + not filename in exclude_list: validLog = open("/srv/crashtestdata/current" + filename + ".log.odfundiff", "w") validLog.write(output) validLog.close()