From: Simon Glass Date: Sat, 10 May 2025 11:04:58 +0000 (+0200) Subject: patman: Add a test for collecting a PATCH prefix X-Git-Tag: v2025.10-rc1~118^2~69^2~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d5675b84c4365050a58e8f8e2783f25c5ea4f572;p=thirdparty%2Fu-boot.git patman: Add a test for collecting a PATCH prefix Add one more test for completeness, since this occurs commonly. Signed-off-by: Simon Glass --- diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py index da81101ea93..55abf52bdb5 100644 --- a/tools/patman/func_test.py +++ b/tools/patman/func_test.py @@ -877,6 +877,14 @@ diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c self.assertEqual(None, patch.prefix) self.assertEqual(None, patch.version) + # With PATCH prefix + patch.parse_subject('[PATCH,2/5] Testing') + self.assertEqual('Testing', patch.subject) + self.assertEqual(2, patch.seq) + self.assertEqual(5, patch.count) + self.assertEqual('PATCH', patch.prefix) + self.assertEqual(None, patch.version) + # RFC patch patch.parse_subject('[RFC,3/7] Testing') self.assertEqual('Testing', patch.subject)