]> git.ipfire.org Git - thirdparty/u-boot.git/commit
patman: Tidy up the start-up code
authorSimon Glass <sjg@chromium.org>
Tue, 29 Apr 2025 13:22:09 +0000 (07:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 27 May 2025 09:07:41 +0000 (10:07 +0100)
commit6e64ae22c2bbb540a8c84193578b8cf0d03f42b9
tree001f9e802853151d788c64a579c7f9a5e2f240f6
parentf5ec4f05f9322bdbfcbff79bfbe2f5f06380ec7d
patman: Tidy up the start-up code

Much of this was written before the other Python tools and they have
evolved. Make a few updates:

- Rather than calling sys.exit(), return the exit code from the control
  module and use it in __main__
- Set up tout as it is used in some places
- We now have quite a few tests, so update the comment about that

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/__main__.py
tools/patman/control.py