public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v5 0/6] add support for repository-local .patman config file
@ 2022-12-20  5:38 Maxim Cournoyer
  2022-12-20  5:38 ` [PATCH v5 1/6] patman: fix pep8 warnings in settings module Maxim Cournoyer
                   ` (5 more replies)
  0 siblings, 6 replies; 20+ messages in thread
From: Maxim Cournoyer @ 2022-12-20  5:38 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Maxim Cournoyer, Simon Glass

This series is based on top of series #333345.  It adds support for a
.patman config file local to the git repository.  A new test
'test_settings.py' test module is added; it is automatically
discovered and run via pytest, e.g.: 'cd tools/patman && pytest'.

Changes in v5:
- Use try/finally in cleared_command_line_args context manager

Changes in v4:
- Use tools.run to invoke git in test suite

Changes in v3:
- Clear command line arguments in test_git_local_config
- Also test overriding a 'send' command line argument

Changes in v2:
- Explicitly provide an empty args list to parse_known_args in test

Maxim Cournoyer (6):
  patman: fix pep8 warnings in settings module
  patman: replace deprecated SafeConfigParser with ConfigParser
  patman: import gitutil module where it is needed
  patman: set the default config_fname argument value to None
  patman: fail early in Setup when provided config file does not exist
  patman: additionally honor a local .patman config file

 tools/patman/__main__.py      |   3 +-
 tools/patman/patman.rst       |   8 ++-
 tools/patman/settings.py      | 101 +++++++++++++++++++++-------------
 tools/patman/test_settings.py |  67 ++++++++++++++++++++++
 4 files changed, 139 insertions(+), 40 deletions(-)
 create mode 100644 tools/patman/test_settings.py


base-commit: 609e301d41284dbca3e6d03fe038ea0807b3df93
-- 
2.38.1


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2022-12-21  1:56 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-20  5:38 [PATCH v5 0/6] add support for repository-local .patman config file Maxim Cournoyer
2022-12-20  5:38 ` [PATCH v5 1/6] patman: fix pep8 warnings in settings module Maxim Cournoyer
2022-12-20 16:25   ` Simon Glass
2022-12-21  0:28     ` Simon Glass
2022-12-20  5:38 ` [PATCH v5 2/6] patman: replace deprecated SafeConfigParser with ConfigParser Maxim Cournoyer
2022-12-20 16:25   ` Simon Glass
2022-12-21  0:28     ` Simon Glass
2022-12-20  5:38 ` [PATCH v5 3/6] patman: import gitutil module where it is needed Maxim Cournoyer
2022-12-20 16:25   ` Simon Glass
2022-12-21  0:28     ` Simon Glass
2022-12-20  5:38 ` [PATCH v5 4/6] patman: set the default config_fname argument value to None Maxim Cournoyer
2022-12-20 16:25   ` Simon Glass
2022-12-21  0:28     ` Simon Glass
2022-12-20  5:38 ` [PATCH v5 5/6] patman: fail early in Setup when provided config file does not exist Maxim Cournoyer
2022-12-20 16:25   ` Simon Glass
2022-12-21  0:28     ` Simon Glass
2022-12-20  5:38 ` [PATCH v5 6/6] patman: additionally honor a local .patman config file Maxim Cournoyer
2022-12-20 16:25   ` Simon Glass
2022-12-21  0:28     ` Simon Glass
2022-12-21  1:56       ` Maxim Cournoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox