patman: Add --no-signoff to suppress adding signoffs
To enable use of patman with FSF/GNU projects, such as GCC or Binutils, no Signed-off-by may be added. This adds a command line flag '--no-signoff' to suppress adding signoffs in patman when processing commits. Signed-off-by: Philipp Tomsich <philipp.tomsich@vrull.eu> Reviewed-by: Simon Glass <sjg@chromium.org> Fix patman testBranch() test: Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:

committed by
Simon Glass

parent
5e66338bab
commit
b3aff15ee4
@@ -475,7 +475,7 @@ complicated as possible''')
|
||||
with capture_sys_output() as _:
|
||||
_, cover_fname, patch_files = control.prepare_patches(
|
||||
col, branch=None, count=-1, start=0, end=0,
|
||||
ignore_binary=False)
|
||||
ignore_binary=False, signoff=True)
|
||||
self.assertIsNone(cover_fname)
|
||||
self.assertEqual(2, len(patch_files))
|
||||
|
||||
@@ -484,7 +484,7 @@ complicated as possible''')
|
||||
with capture_sys_output() as _:
|
||||
_, cover_fname, patch_files = control.prepare_patches(
|
||||
col, branch='second', count=-1, start=0, end=0,
|
||||
ignore_binary=False)
|
||||
ignore_binary=False, signoff=True)
|
||||
self.assertIsNotNone(cover_fname)
|
||||
self.assertEqual(3, len(patch_files))
|
||||
|
||||
@@ -492,7 +492,7 @@ complicated as possible''')
|
||||
with capture_sys_output() as _:
|
||||
_, cover_fname, patch_files = control.prepare_patches(
|
||||
col, branch='second', count=-1, start=0, end=1,
|
||||
ignore_binary=False)
|
||||
ignore_binary=False, signoff=True)
|
||||
self.assertIsNotNone(cover_fname)
|
||||
self.assertEqual(2, len(patch_files))
|
||||
finally:
|
||||
|
Reference in New Issue
Block a user