[PATCH v3 20/29] patman: Convert testBasic() to use an interator

Simon Glass sjg at chromium.org
Wed Nov 4 10:02:57 AEDT 2020


On balance it is easier to use an iterator here, particularly if we need
to insert lines due to new functionality. The only niggle is the need to
keep the previous iterator value around in one case.

Convert this test to use iter().

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 tools/patman/func_test.py | 55 +++++++++++++++++++--------------------
 1 file changed, 27 insertions(+), 28 deletions(-)

Applied to u-boot-dm, thanks!


More information about the Patchwork mailing list