diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-03 13:54:10 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-11-14 15:23:41 -0700 |
commit | 4600767d294d892ce52cb0af3b24e324a3df4818 (patch) | |
tree | 4f3ab492a89bfc98e568a196df9aa8ba91af1eb5 /tools/patman/func_test.py | |
parent | 832bfad7451e2e7bd23c96edff2be050905ac3f6 (diff) |
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>
Diffstat (limited to 'tools/patman/func_test.py')
-rw-r--r-- | tools/patman/func_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py index e2adf32c73..5933fcfd14 100644 --- a/tools/patman/func_test.py +++ b/tools/patman/func_test.py @@ -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))) |