]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
patchtest: reduce checksum test output length
authorTrevor Gamblin <tgamblin@baylibre.com>
Fri, 27 Oct 2023 15:43:38 +0000 (11:43 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Oct 2023 16:48:08 +0000 (17:48 +0100)
The test_lic_files_chksum_modified_not_mentioned test in TestMetadata is
outputting very long lines that fail the maximum length check when
sending email results, preventing the actual errors from being
displayed. Reduce the length of the failure message by rewording and
removing redundant information.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/patchtest/tests/test_metadata.py

index 34e119174fe35e333d5738934fcb1a33ea97d320..3742760b45162fc8dd85aaa631db5266611bcf22 100644 (file)
@@ -116,7 +116,7 @@ class TestMetadata(base.Metadata):
                     if self.lictag_re.search_string(commit.commit_message):
                        break
                 else:
-                    self.fail('LIC_FILES_CHKSUM changed on target %s but there is no "License-Update:" tag in commit message. Include it with a brief description' % pn,
+                    self.fail('LIC_FILES_CHKSUM changed without "License-Update:" tag and description in commit message',
                               data=[('Current checksum', pretest), ('New checksum', test)])
 
     def test_max_line_length(self):