patman: Move common test code into a new module
authorSimon Glass <sjg@chromium.org>
Sat, 10 May 2025 11:04:59 +0000 (13:04 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 27 May 2025 09:07:42 +0000 (10:07 +0100)
commit1be26d78cf2b7743d504c83ecac5a7a3d7ce8222
treeb1127f69d867cad16c4e370f2d2ce2b4fd36ec4b
parentd5675b84c4365050a58e8f8e2783f25c5ea4f572
patman: Move common test code into a new module

The func_test file is quite large. In order to allow new tests to be
added to a separate file, move the common test code into a separate
class, to be inherited by other classes.

Drop unnecessary imports in func_test

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/__init__.py
tools/patman/control.py
tools/patman/func_test.py
tools/patman/test_common.py [new file with mode: 0644]