binman: Set up 'entry' to permit full test coverage
authorSimon Glass <sjg@chromium.org>
Mon, 13 Nov 2017 04:52:20 +0000 (21:52 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 23 Nov 2017 01:05:38 +0000 (18:05 -0700)
commit4d5994f91c5c781fb0c8b32b58abfc4d9d2ec878
tree6c37ad79e68d7e2a4971dd04304370bd0079eeac
parent5a3f2226043cd46d446ab6eba39e47d131b47175
binman: Set up 'entry' to permit full test coverage

There is a little check at the top of entry.py which decides if importlib
is available. At present this has no test coverage. To add this we will
need to import the module twice, once with importlib and once without.
In preparation for allowing a test to control the importing of this
module, remove all global imports of the 'entry' module.

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