diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2023-10-29 10:54:26 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-29 22:39:17 +0000 |
commit | 9b22a5aa8c81852ba0fca693ef0c9cb12d4ad4b5 (patch) | |
tree | 511f428a14f12acc5250e579807c804a56d632fc /meta/lib/patchtest/tests/test_patch.py | |
parent | 631d19ed6c1935dad19f999a2acbedd272c4b24f (diff) | |
download | poky-9b22a5aa8c81852ba0fca693ef0c9cb12d4ad4b5.tar.gz |
patchtest: shorten test result outputs
Some test result lines in TestMbox and TestPatch are still too long to
avoid being flagged by the mailer script. Clean them up by removing
redundant information, so that they are all under the length limit of
220 characters.
(From OE-Core rev: c10d0bb542b23fbdc14d76dfa8e5885aa4d33083)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/patchtest/tests/test_patch.py')
-rw-r--r-- | meta/lib/patchtest/tests/test_patch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/patchtest/tests/test_patch.py b/meta/lib/patchtest/tests/test_patch.py index b6904b185f..65d0f930b0 100644 --- a/meta/lib/patchtest/tests/test_patch.py +++ b/meta/lib/patchtest/tests/test_patch.py | |||
@@ -50,7 +50,7 @@ class TestPatch(base.Base): | |||
50 | for newpatch in TestPatch.newpatches: | 50 | for newpatch in TestPatch.newpatches: |
51 | payload = newpatch.__str__() | 51 | payload = newpatch.__str__() |
52 | if not self.upstream_status_regex.search_string(payload): | 52 | if not self.upstream_status_regex.search_string(payload): |
53 | self.fail('Added patch file is missing Upstream-Status in the header. Add Upstream-Status: <Valid status> to the header', | 53 | self.fail('Added patch file is missing Upstream-Status: <Valid status> in the commit message', |
54 | data=[('Standard format', self.standard_format), ('Valid status', self.valid_status)]) | 54 | data=[('Standard format', self.standard_format), ('Valid status', self.valid_status)]) |
55 | for line in payload.splitlines(): | 55 | for line in payload.splitlines(): |
56 | if self.patchmetadata_regex.match(line): | 56 | if self.patchmetadata_regex.match(line): |
@@ -87,7 +87,7 @@ class TestPatch(base.Base): | |||
87 | if TestPatch.prog.search_string(payload): | 87 | if TestPatch.prog.search_string(payload): |
88 | break | 88 | break |
89 | else: | 89 | else: |
90 | self.fail('A patch file has been added, but does not have a Signed-off-by tag. Sign off the added patch file (%s)' % newpatch.path) | 90 | self.fail('A patch file has been added without a Signed-off-by tag. Sign off the added patch file (%s)' % newpatch.path) |
91 | 91 | ||
92 | def test_cve_tag_format(self): | 92 | def test_cve_tag_format(self): |
93 | for commit in TestPatch.commits: | 93 | for commit in TestPatch.commits: |