aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/binman.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-11-12 21:52:21 -0700
committerSimon Glass <sjg@chromium.org>2017-11-22 18:05:38 -0700
commit934cdcfb1b1cac6a6c987f3f91e341c713770224 (patch)
treee289915f85d46fa0a6e870091abd5a1ed832ecea /tools/binman/binman.py
parent4d5994f91c5c781fb0c8b32b58abfc4d9d2ec878 (diff)
downloadu-boot-934cdcfb1b1cac6a6c987f3f91e341c713770224.zip
u-boot-934cdcfb1b1cac6a6c987f3f91e341c713770224.tar.gz
u-boot-934cdcfb1b1cac6a6c987f3f91e341c713770224.tar.bz2
binman: Add tests for importlib availability
Add a test that the 'entry' module works with or without importlib. The tests are numbered so that they are executed in the correct order. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/binman.py')
-rwxr-xr-xtools/binman/binman.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/binman/binman.py b/tools/binman/binman.py
index 963d43a..cf83edf 100755
--- a/tools/binman/binman.py
+++ b/tools/binman/binman.py
@@ -44,8 +44,12 @@ def RunTests():
suite.run(result)
sys.argv = [sys.argv[0]]
- for module in (ftest.TestFunctional, fdt_test.TestFdt,
- entry_test.TestEntry):
+
+ # Run the entry tests first ,since these need to be the first to import the
+ # 'entry' module.
+ suite = unittest.TestLoader().loadTestsFromTestCase(entry_test.TestEntry)
+ suite.run(result)
+ for module in (ftest.TestFunctional, fdt_test.TestFdt):
suite = unittest.TestLoader().loadTestsFromTestCase(module)
suite.run(result)