summaryrefslogtreecommitdiff
path: root/tools/patman/func_test.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-05-10 13:04:58 +0200
committerSimon Glass <sjg@chromium.org>2025-05-27 10:07:42 +0100
commitd5675b84c4365050a58e8f8e2783f25c5ea4f572 (patch)
treec8629f1de82a5b890a15435762d6238432fe4a9a /tools/patman/func_test.py
parent77177ba82f12e8b4422c23414d7a68ba9a3f6e20 (diff)
patman: Add a test for collecting a PATCH prefix
Add one more test for completeness, since this occurs commonly. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/func_test.py')
-rw-r--r--tools/patman/func_test.py8
1 files changed, 8 insertions, 0 deletions
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)