]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
patchtest: improve test issue messages
authorTrevor Gamblin <tgamblin@baylibre.com>
Thu, 12 Oct 2023 13:24:58 +0000 (09:24 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Oct 2023 07:03:00 +0000 (08:03 +0100)
commit0bfb3614244ec7aa79b6424bc63f9f2bccdabe98
tree408a0197b1d27ecee6bd789e3cdbde08edb4d1c4
parent109eb5e058061a53c20cc58c59ffc8c797b3c3b7
patchtest: improve test issue messages

The patchtest tests provide vague feedback to the user, and many of them
also provide redundant 'fix' strings that could easily be incorporated
into the issue messages themselves. Simplify them so that it is more
clear what the errors are and how they can be addressed. No
recommendation is given when the issue string adequately conveys the
issue, e.g. with a missing "LICENSE" entry in a newly-created recipe.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 files changed:
meta/lib/patchtest/tests/test_mbox_author.py
meta/lib/patchtest/tests/test_mbox_bugzilla.py
meta/lib/patchtest/tests/test_mbox_cve.py
meta/lib/patchtest/tests/test_mbox_description.py
meta/lib/patchtest/tests/test_mbox_format.py
meta/lib/patchtest/tests/test_mbox_mailinglist.py
meta/lib/patchtest/tests/test_mbox_merge.py
meta/lib/patchtest/tests/test_mbox_shortlog.py
meta/lib/patchtest/tests/test_mbox_signed_off_by.py
meta/lib/patchtest/tests/test_metadata_lic_files_chksum.py
meta/lib/patchtest/tests/test_metadata_license.py
meta/lib/patchtest/tests/test_metadata_max_length.py
meta/lib/patchtest/tests/test_metadata_src_uri.py
meta/lib/patchtest/tests/test_metadata_summary.py
meta/lib/patchtest/tests/test_patch_cve.py
meta/lib/patchtest/tests/test_patch_signed_off_by.py
meta/lib/patchtest/tests/test_patch_upstream_status.py
meta/lib/patchtest/tests/test_python_pylint.py