binman: Tweak implementation of fmap
authorSimon Glass <sjg@chromium.org>
Fri, 2 Apr 2021 22:05:09 +0000 (11:05 +1300)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Apr 2021 10:23:39 +0000 (03:23 -0700)
commitc7722e84170a1b855da808c6e6aab4f871b15e0d
treee2df2f691e42dd88349badd8da78676ab535470f
parentec6db6c297afa8ef9f72c73c067d98e764aeae25
binman: Tweak implementation of fmap

Use an interator in two of the fmap tests so it is easier to add new
items. Also check the name first since that is the first indication
that something is wrong. Use a variable for the expected size of the
fmap to avoid repeating the code.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/ftest.py