mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
patman: Refactor how the default subcommand works
At present patman tries to assume a default subcommand of 'send', to maintain backwards compatibility. However it does not cope with arguments added to the default command, so for example 'patman -t' does not work. Update the logic to handle this. Also update the CC command to use 'send' explicitly, since otherwise patman gets confused with the patch-filename argument. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
832bfad745
commit
4600767d29
3 changed files with 38 additions and 33 deletions
|
@ -248,7 +248,7 @@ class TestFunctional(unittest.TestCase):
|
|||
self.assertEqual(' Cc: %s' % rick, next(lines))
|
||||
expected = ('Git command: git send-email --annotate '
|
||||
'--in-reply-to="%s" --to "u-boot@lists.denx.de" '
|
||||
'--cc "%s" --cc-cmd "%s --cc-cmd %s" %s %s'
|
||||
'--cc "%s" --cc-cmd "%s send --cc-cmd %s" %s %s'
|
||||
% (in_reply_to, stefan, sys.argv[0], cc_file, cover_fname,
|
||||
' '.join(args)))
|
||||
self.assertEqual(expected, tools.ToUnicode(next(lines)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue