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

2020-11-03 Thread Simon Glass
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 --- (no changes since v1) tools/pa

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

2020-10-29 Thread Simon Glass
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 --- (no changes since v1) tools/pa