]> git.dujemihanovic.xyz Git - u-boot.git/commit
patman: Convert testBasic() to use an interator
authorSimon Glass <sjg@chromium.org>
Fri, 30 Oct 2020 03:46:29 +0000 (21:46 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 5 Nov 2020 16:11:31 +0000 (09:11 -0700)
commit8c17f8c5d21842bc95ca6e27680009b6bc650b0f
treec9245b03dd5a019e3e96048cdc2128af1e8bce35
parent4af99874562f2ae26e84a9904009c7ce121d540d
patman: Convert testBasic() to use an interator

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@chromium.org>
tools/patman/func_test.py