git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77177ba
)
patman: Add a test for collecting a PATCH prefix
author
Simon Glass
<sjg@chromium.org>
Sat, 10 May 2025 11:04:58 +0000
(13:04 +0200)
committer
Simon Glass
<sjg@chromium.org>
Tue, 27 May 2025 09:07:42 +0000
(10:07 +0100)
Add one more test for completeness, since this occurs commonly.
Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/func_test.py
patch
|
blob
|
history
diff --git
a/tools/patman/func_test.py
b/tools/patman/func_test.py
index
da81101
..
55abf52
100644
(file)
--- 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)